Thanks for your reply. I added it to MEMBERINFO, when I saved the template, it gave me an error message - possibly incorrect if statement.
The following code works well:
PHP Code:
<if condition="$userinfo['field5']">
<div class="smallfont">
Recent Blog:
<a href="$blogLink" target="_blank">$blogTitle</a>
</div>
</if>
I want to add an condition for 'recent blog', but I can't get rid of the grammar error.
PHP Code:
<if condition="$userinfo['field5']">
<div class="smallfont">
<if condition="$userinfo['field6']">
$userinfo['field6']
<else />
Recent Blog:
</if>
<a href="$blogLink" target="_blank">$blogTitle</a>
</div>
</if>