I would like to output different HTML for a single event post depending on its parent event category.
For example, output ABC if an event is in Concerts/Rock or Concerts/Classical, but output XYZ if the event is in Lectures/Philosophy or Lectures/Politics. (The parent categories here being Concerts and Lectures.)
How could I do this? I’m comfortable with adding functions and editing PHP. Thanks!
You can add the code to a function that’s hooked to an action (like in the example) or directly into a template. How and where you add the code will depend on where you want to add the custom html.
Viewing 1 reply thread
The support post ‘Check if an event is in a particular parent category’ 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.