Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Get Event Categories | Event Espresso - Staging Server

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


Josh

August 3, 2012 at 3:18 pm

You could try the category_name category: http://staging.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 - Staging Server