Support

Home Forums Event Espresso Premium Add column to espresso table containing categories assigned to events

Add column to espresso table containing categories assigned to events

Posted: January 24, 2013 at 12:02 pm

Viewing 2 reply threads


bcharbonneau

January 24, 2013 at 12:02 pm

Hello, I’m using the custom files add-on and have a table (espresso_table) listing events with the following columns: course, city, start date and end date. I would like to add “vendor” as a column and use the categories assigned to each event. Not sure how to start with this. Thanks.

  • This topic was modified 11 years, 10 months ago by bcharbonneau.


Josh

  • Support Staff

January 25, 2013 at 1:58 pm

Hi there,

In the espresso_table.php file, there’s a section where you’ll add a new table heading, something like:

<th class="th-group"><?php _e('Vendor','event_espresso'); ?></th>

then further down where the table cells that go below the table headings are, you can add a corresponding cell like this to display the category name:

<td class="td-group">
                          <?php echo do_shortcode('[CATEGORY_NAME event_id="'.$event->id.'"]');?>
          </td>


bcharbonneau

January 28, 2013 at 8:54 pm

It worked perfectly, thanks!

Viewing 2 reply threads

The support post ‘Add column to espresso table containing categories assigned to events’ 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