Home Forums Event Espresso Premium Get Event Categories

Get Event Categories

Posted: August 3, 2012 at 7:09 am

Kane Realty

August 3, 2012 at 7:09 am

Is there a function I can use to retrieve a list of categories for each event along that does the same work as get_the_category();? I would like to use the categories assigned to an event as classes to display icons.

Example here:

Also, is $category_identifier supposed to retrieve something? Because it doesn’t seem to be working… here’s what I have so far:

echo 'cat-'.$category_id.' '.$category_identifier;
  • This topic was modified 11 years, 8 months ago by  Kane Realty. Reason: Code didn't come through

Kane Realty

August 3, 2012 at 9:11 am

I pulled this from one of your plugin’s function files… it works. If you know a better way, I’m all ears. Thanks!


  • Support Staff

August 3, 2012 at 3:18 pm

You could try the category_name category:

The support post ‘Get Event Categories’ 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