I am so stuck with a conditional display in PHP.
Could you please help to fix the following conditions:
What I want to do (in a VBA way...) in the LOOP
If category='uncategorised'
then "Do not display KICKER"
else
If category='red'
kicker background=red
if category='blue'
kicker background=blue
The ultimate goal is to display a background image different per category in the KICKER only on the homepage and display nothing if no category.
I've got this code but full a errors...
Code:
<?php bfa_post_kicker( if (in_category('red')) { ('<div class="post-kicker">','</div>') ?> <?php } ?>