Support

Home Forums Event Espresso Premium Get Event Categories

Get Event Categories

Posted: August 3, 2012 at 7:09 am

Viewing 2 reply threads


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: http://northhillsraleigh.dreamhosters.com/event-registration/

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 12 years, 2 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!
http://pastebin.com/J9p2F7Ds


Josh

  • Support Staff

August 3, 2012 at 3:18 pm

You could try the category_name category: https://eventespresso.com/wiki/shortcodes-template-variables/#event-category

Viewing 2 reply threads

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