has_terms() & in_category() not working
-
Hi,
I am trying to display content depending on the event category my posts is in but I can’t seem to do it. I’m assuming this is pretty simple to do.
I’ve tried both –
<?php if ( has_term('Bandstand') ) { ?><span class="bandstand">Bandstand Event</span><?php } ?>
but that isn’t working. Can someone help please?
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘has_terms() & in_category() not working’ is closed to new replies.