Hello, I’m using a widget login plugin to display widgets on certain event pages, depending on which category name they are in.
I can successfully target each page using this: is_single( ‘1786’ )
However, I need to target posts in a specific event category I created. I tried this code below, but it does not work.
has_term( ‘new-event’, ‘espresso_event_categories’ )
The event category I created has a slug of new-event
The support post ‘Conditional Tag Help’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.