Support

Home Forums Event Espresso Premium EE4 show current Category and Category description on top of event list

EE4 show current Category and Category description on top of event list

Posted: November 15, 2017 at 11:27 pm

Viewing 1 reply thread


Shore Studio

November 15, 2017 at 11:27 pm

Hi All,

Looked at documentation and cant seem to find a way to access the Category Name and Category Description info. There is some suggestions from EE3 around using the [CATEGORY_NAME ] shortcode but that does not seem to be available on EE4.

Could use some guidance as this seems like it should be a pretty straight forward option when showing an event list by event-category.

Cheers

Westa


Josh

  • Support Staff

November 16, 2017 at 7:46 am

Hi Westa,

You can actually access those with WordPress template tags. Event Espresso 4’s event categories are custom taxonomies, so you use the
single_term_title() function to get the event category title and you use
term_description() to get the description. You can check the WP codex for more info and code examples:

https://developer.wordpress.org/reference/functions/single_term_title/
https://developer.wordpress.org/reference/functions/term_description/

Viewing 1 reply thread

The support post ‘EE4 show current Category and Category description on top of event list’ 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.

Event Espresso