Posted: February 23, 2014 at 10:30 pm
Hi, I am now using the custom files add-on with the custom templates events table view. Currently the table shows the start date but I would also like to show the start time and end time of that day but also some events run two days so I would like to show the both days start time and end time. Can you let me know how I can show this in the table view. Thanks. |
|
I see on this page: https://eventespresso.com/wiki/shortcodes-template-variables/#event-list that the Events table shows the start time. How do I get the start time on my table as well? As of now it only shows the start date. Also can the table show the End Date as well since some events are 2 days? Thanks. |
|
This is the shortcode I’m using now: [EVENT_CUSTOM_VIEW max_days=”30″ event_category_id=”standard-first-aid-with-cpr-c-aed” order_by=”start_date”] |
|
Hi there, You can add the start and end times to the template via the [EVENT_TIME] shortcode. There’s some example template code in the shortcode documentation: https://eventespresso.com/wiki/shortcodes-template-variables/#time-date Please note that you’ll need to add this to the template file where you want the time to be displayed. |
|
Hi Josh I’m not even sure this is correct so a little guidance here please. Thanks |
|
|
Hi, What Josh meant is that the shortcode would need to be added to the template code in order to achieve what you are after. Something like: <?php echo do_shortcode('[EVENT_TIME event_id="'.$event_id.'" type="start_date" format="F jS"]'); ?> There is no way to do it by just changing the shortcode text. |
Is this the only change that has to be made and the file that needs to be edited is event_list_table.php? |
|
Hi there, You’d likely write one shortcode for each place where you want a time or date displayed along with a label to identify them. The file that you edit is found in the custom templates plugin and it’s /templates/events-table/index.php. |
|
Thanks for this. I am now able to see the start date and time and the end date and time on my listings. Now it raises another issue for me… I have some courses that run over two days and the duration of the course is different for each day. So I need my listings to display the start date and end date as such… How can I show this in my listings… here is what the page looks like now: http://cloud2.hyperweb.ca/~sosfirs2/?page_id=194 |
|
One solution could be to use the EE Meta boxes to enter the additional start times and add a template tag to the template that displays the additional times if they are entered: https://eventespresso.com/wiki/shortcodes-template-variables/#ee-meta |
|
Hi Josh |
|
Someone on the team can probably get this done in 30 minutes, so you could buy a support token. If you buy a support token it gives you a form to fill out where you can give us temporary FTP and WordPress admin credentials so we can upload the files with the modifications. |
|
Thanks Josh… I’ll do just that. |
|
Hi Josh Thanks |
|
Hi Terry, The customizations are in a new plugin installed on your site that’s named: If you go to edit the Standard First Aid with CPR HCP / AED page you’ll note the use of the template_name parameter like this: [EVENT_CUSTOM_VIEW max_days=”365″ template_name=”events-table-sos” event_category_id=”standard-first-aid-with-cpr-hcp-aed”] If you’re using the event custom view shortcode on other pages you’ll need to update them to use the template_name parameter. The value is events-table-sos. When you go to edit or create a new event, you’ll need to enter the Event’s start and end times for the entire event. So for example, if it begins on the first day at 9:00 am and ends the second day at 4:00 pm, you’d enter 9:00 am for the start and 4:00pm for the end time. Then, you scroll down to the box that says “Event Meta”. The key for the end time for the first day is “end_time_first_event_day”. Its default is 5:30 pm. The key for the start time for the second day is “start_time_second_event_day”. Its default is 9:00 am. New events will have these pre-filled out. You’ll need to add the new key/value pairs manually to the existing events. I added them as as example to the Standard-First-Aid-with-CPR-HCP/AED (Mississauga) event for March 8 so you can see what the Meta set up looks like. |
|
Hi Josh Can you tell me if I have anymore time left on this token? Thanks again |
|
Hi Terry, I used all the time from the one token to make your customizations. |
|
Ok thanks. |
|
The support post ‘How to show START DATE/ END DATE and START TIME/ END TIME’ 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.