• Resolved j_mo

    (@j_mo)


    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.

    https://www.ads-software.com/plugins/events-manager/

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.