Support

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: 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 7 years 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: http://eventespresso.com/wiki/shortcodes-template-variables/#event-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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 7 years ago ago

Topic Tags

Tagged: 

Notifications

This topic is: resolved
Do NOT follow this link or you will be banned from the site!