I can't really find an error, sorry...
Here's a rewrite, but I don't expect it to help...
HTML Code:
<if condition="$post[field9] != ''"><div class="smallfont"><strong>Guild: </strong><a href="$post[field9]" target="_blank">$post[field7]</a></div>
<else />
<div class="smallfont"><strong>Guild: </strong>$post[field7]</div></if>
Make sure that the fieldids (7 + 9) are correct...