Support

Home Forums Event Espresso Premium How to add event time on event list page

How to add event time on event list page

Posted: March 13, 2014 at 7:01 am

Viewing 1 reply thread


Debora Puterman

March 13, 2014 at 7:01 am

Hello

I am using this two short code [ESPRESSO_EVENTS] and [EVENT_LIST events_per_page=10] on the different page.By default it shows price,Available Spaces, and date.It not showing start time and end time on the page ,it will visible when we click on REGISTER button.
But In my case i want start time and end time on the same page where all event listing by default its showing on registration page.
Is there a way to do that ?

Forcefully I am adding some php in uploads/espresso/templates/event-list.php code

echo event_espresso_time_dropdown($event_id);

its woking fine if event have single time but when time coming in dropdown and we select that its not working in this case we again need to select on registration page.I want if i already select that on event list it would be selected on registration page as well

Thanks


Dean

March 14, 2014 at 2:25 am

Hi,

The reason why the dropdown doesn’t do anything is because it simply isn’t coded to do anything on the Event List page.

You could use

echo event_espresso_display_selected_time($time_id = 1, $format = 'default');

Where the time_id increases with each time added.

It’s not a perfect solution though.

So, I made you a quick custom function – it uses the dropdown list function but simply outputs the content instead – https://gist.github.com/Apina/ee274edad2c26fef1f87

It needs to be added to wp-content/uploads/espresso/custom_functions.php and it is called with

echo deans_amazing_time($event_id);

It’s just a starting point, and is not supported/will not be updated, but it might help with getting what you need done.

Viewing 1 reply thread

The support post ‘How to add event time on event list page’ 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