Sammy
Joined: 03 Jan 2004 Posts: 4 Location: Melb, Australia
|
Posted: Wed Jan 07, 2004 2:58 am Post subject: help with b2customfields templates |
|
|
i just installed b2customfields and i put:
Code: | Mood: <?php getcustomfield('Mood'); ?> |
in my template but all previous entries now have empty lines where the mood is meant to be. sometimes i may not want to write anything for the mood and i just want my template to recognise that it shouldn't the "Mood: " line above my posts at all.
mystis said to use:
Code: | <?
$mood = getcustomfield('mood');
if(!empty($mood)){
echo "Mood: ".$mood;
}
?> |
but it doesn't work for me. the "mood: " part doesn't come up. how do i fix this? can anyone help? |
|