I dont know php but there are some changes I need to make
I am trying to edit the code to display the date and time next to each other. This is the code for the date
That snippet is intended to allow you to output a list of events from another site other than the one you are using that shortcode on, so before moving forward, are you using this on the same site that Event Espresso is installed on or another?
What format are you wanting to use for the time? Date and time?
I am using on a totally different site from the site which has EE installed. The plugin works fine. I made a few modifications and those work fine.
OK, I was checking as you mentioned you don’t know PHP so you may have not been familiar with that function using the REST API, which is usually used to access the data from another site. Adding an event list on the same site can be don using the EE Model System and we often see users using something like the above rather than the models.
The layout of the date and time should be like this (one under the other)
24 June 2021
12:30 – 14:00
Thank you so much. As I look at the code it seems so simple but when you don’t know, you don’t know. One last thing please, is how do I order the events list as it currently pulls events randomly and I would like the latest events first.
Thank you again
Andrea
The support post ‘How do I display the 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.
Support forum for Event Espresso 3 and Event Espresso 4.