Support

Home Forums Event Espresso Premium How to show START DATE/ END DATE and START TIME/ END TIME

How to show START DATE/ END DATE and START TIME/ END TIME

Posted: February 23, 2014 at 10:30 pm

Viewing 17 reply threads


cmessengerlehmann

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.


cmessengerlehmann

February 24, 2014 at 8:13 am

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.


cmessengerlehmann

February 24, 2014 at 8:16 am

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”]


Josh

  • Support Staff

February 24, 2014 at 9:17 am

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.


cmessengerlehmann

February 25, 2014 at 2:27 pm

Hi Josh
I’ve tried using those codes but they just don’t seem to work. Here is what I have entered on my page:
[EVENT_CUSTOM_VIEW max_days=”30″ type=”start_date_time | end_date_time | start_time | end_time ” event_category_id=”cpr-hcp-aed”]

I’m not even sure this is correct so a little guidance here please.
This is what my page currently shows – http://cloud2.hyperweb.ca/~sosfirs2/?page_id=177 – and the above code is installed at the bottom of that page.

Thanks


Dean

February 26, 2014 at 12:31 am

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.


cmessengerlehmann

February 26, 2014 at 8:29 am

Is this the only change that has to be made and the file that needs to be edited is event_list_table.php?


Josh

  • Support Staff

February 26, 2014 at 11:00 am

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.


cmessengerlehmann

February 26, 2014 at 11:06 pm

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…
START DATE March 22, 2014 9:00am – 5:00pm
END DATE March 23, 2014 9:00am – 4:00pm

How can I show this in my listings… here is what the page looks like now: http://cloud2.hyperweb.ca/~sosfirs2/?page_id=194


Josh

  • Support Staff

February 27, 2014 at 5:58 am

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


cmessengerlehmann

February 27, 2014 at 7:27 am

Hi Josh
This seems to be beyond my skills here at this point. Can you tell me what it will take for you or your them there to accomplish this for me.


Josh

  • Support Staff

February 27, 2014 at 11:41 am

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.


cmessengerlehmann

February 28, 2014 at 9:47 am

Thanks Josh… I’ll do just that.


cmessengerlehmann

March 3, 2014 at 9:27 am

Hi Josh
Can you let me know if you have all the information you need to proceed with this support request.

Thanks
Terry


Josh

  • Support Staff

March 3, 2014 at 12:39 pm

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.


cmessengerlehmann

March 3, 2014 at 1:28 pm

Hi Josh
This looks to be working fine now. Thanks. I’ve gone thru and added start time and end time for 2 day events and its operating fine.

Can you tell me if I have anymore time left on this token?

Thanks again
Terry


Josh

  • Support Staff

March 3, 2014 at 1:34 pm

Hi Terry,

I used all the time from the one token to make your customizations.


cmessengerlehmann

March 3, 2014 at 1:43 pm

Ok thanks.

Viewing 17 reply threads

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.

Event Espresso