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
Add column to espresso table containing categories assigned to events | Event Espresso - Staging Server

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, 12 months ago by bcharbonneau.


Josh

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 - Staging Server