Support

Home Forums Event Espresso Premium How to Get Category name in events listing page ?

How to Get Category name in events listing page ?

Posted: April 12, 2013 at 2:46 am

Viewing 2 reply threads


inspectahdeck

April 12, 2013 at 2:46 am

Hello,

I have been trying to get category name to display in event_list_display.php page but am not able to find any function to do so.

Can you help its kinda urgent!

 

 


Dean

April 12, 2013 at 4:57 am

Hi,

You can use the [CATEGORY_NAME] shortcode. https://eventespresso.com/wiki/shortcodes-template-variables/#event-category

Manually – add [CATEGORY_NAME event_id=1] to each event, changing the event_id number to the correct event number.

Automatically (requires some coding knowledge) – add the following to your event_list_display.php template

echo do_shortcode('[CATEGORY_NAME event_id=' . $event_id . ']');


inspectahdeck

April 12, 2013 at 7:23 am

Awesome that worked like a charm 🙂

Viewing 2 reply threads

The support post ‘How to Get Category name in events listing page ?’ 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