Support

Home Forums Event Espresso Premium Events Table View – Display Category Name

Events Table View – Display Category Name

Posted: May 25, 2016 at 9:14 pm

Viewing 4 reply threads


YOKE

May 25, 2016 at 9:14 pm

Hello

I am using the Events Table View add-on (V 1.3.3.p) with Event Espresso (V 4.8.43.p).

I am displaying events of the same category in individual tables and I want to be able to show the category at the top of the table as a heading.

Any help/advice would be greatly appreciated!

Thanks in advance.


Josh

  • Support Staff

May 26, 2016 at 6:42 am

Hi Leanne,

Will something like this work where you add the category name to the editor just before the short code, wrapped in h tags like this?

<h2>Category Name</h2>
[ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=category-slug]

<h2>Another Category Name</h2>
[ESPRESSO_EVENTS_TABLE_TEMPLATE category_slug=another-category-slug]


YOKE

May 31, 2016 at 12:29 am

Hi Josh

That is what I am currently doing – however when the events for a particular category become past events and the table disappears we are left with a category name with no purpose.

Leanne


Tony

  • Support Staff

May 31, 2016 at 11:23 am

Hi Leanne,

Are you currently using a child theme and are you comfortable editing PHP files?

To do this you will need to create your own version of the template file used by the table view template.

You’ll want to grab a copy from:

\wp-content\plugins\eea-events-table-view-template\templates\

The file should be espresso-events-table-template.template.php

Place that within the root directory of your child theme and then add something like this:

https://gist.github.com/Pebblo/9d2ccabcc8c86aabb962bcf86aa06969

Wherever you want to output the category name, around line 43 should work.


YOKE

May 31, 2016 at 5:40 pm

Thank you Tony, that is exactly what I was after!

Viewing 4 reply threads

The support post ‘Events Table View – Display Category Name’ 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