Support

Home Forums Event Espresso Premium How to remove TIME END from datetime in tableview template

How to remove TIME END from datetime in tableview template

Posted: February 13, 2016 at 7:55 pm

Viewing 1 reply thread


lee@safeswim.com

February 13, 2016 at 7:55 pm

My events are listed in table view with a column for time. I would like to only have the start time shown as the end times may change.

The table is currently showing this below:

9:00 am – 5:00 pm

I would like it to only show the start time:

9:00 am

I copied the espresso-events-table-template.template and have placed it in the proper template folder

This is the code I have:

<td class=”time event-<?php echo $post->ID; ?>”><?php espresso_event_date_range( ‘g:i a’, ‘ ‘, ‘ ‘, ‘ ‘, $event->ID() ); ?></td>

Thank you!


Lorenzo Orlando Caum

  • Support Staff

February 14, 2016 at 6:39 pm

Hi, it does not show that information by default (https://eventespresso.com/wp-content/uploads/2014/07/ee4-events-table3.jpg) so you may have previously added it in another customization.

Here is what it needs to be changed to:

http://cl.ly/14141Y0n330e

You can find an original copy of the default code here:

/wp-content/plugins/eea-events-table-view-template/templates/espresso-events-table-template.template.php


Lorenzo

Viewing 1 reply thread

The support post ‘How to remove TIME END from datetime in tableview template’ 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