mcdull
07-02-2006, 07:19 PM
I want to modify the postbit to show some content based on the user custom field's content.
Here is my code.
<if condition="$post['field2'] == XXXX">
<div class="smallfont">Message1</div>
<else />
<if condition="$post['field2'] == YYYY">
<div class="smallfont">Message2</div>
<else />
Message3
</if>
</if>
but it only shows Message3 in all conditions. Can anyone help me?
FYI, I can show the content of $post[field2] by using <p>$post[field2]</p>
Thanks.
Here is my code.
<if condition="$post['field2'] == XXXX">
<div class="smallfont">Message1</div>
<else />
<if condition="$post['field2'] == YYYY">
<div class="smallfont">Message2</div>
<else />
Message3
</if>
</if>
but it only shows Message3 in all conditions. Can anyone help me?
FYI, I can show the content of $post[field2] by using <p>$post[field2]</p>
Thanks.