Support

Home Forums Event Espresso Premium Shortcode

Shortcode

Posted: June 30, 2016 at 12:09 pm

Viewing 3 reply threads


ps

June 30, 2016 at 12:09 pm

Hi EventEspresso Support Team,

Can you please give me instructions on how to edit a specific shortcode, or is there any different way of achieving this: I need a list of a couple of latest events with event name in the first column, event date(start – end) in the second column, category name in the third column, and buy ticket(or when are tickets available) in the fourth.

Thanks a lot for your reply and best regards!


Josh

  • Support Staff

June 30, 2016 at 1:22 pm

You might want to start with the Events Table template add-on, since that displays events in a table with columns. Then you edit its template to include a category name and remove the column that displays the venue.

There are some code examples in the Events table template add-on documentation:

https://eventespresso.com/wiki/events-table-view-template-add-on/#customizations


ps

June 30, 2016 at 3:44 pm

Hi Josh
Thanks for your swift reply. How can I show the start and end time of an event? In the examples, always the start time is shown, but not the end time. I would like to have the following display:
November, 16th, 2016: 6:00 PM – 9:00 PM

And for a multi day event:
November, 16th, 2016: 9:00 AM – November, 19th, 2016: 8:00 PM

Date and times should be in the following format: DD.MM.YYYY 10:00 – 21:00

Thanks for your answer and best regards!


Josh

  • Support Staff

June 30, 2016 at 3:51 pm

If you look through the code examples, you’ll see this which is for getting the start date and time:

$startdat = $datetime->start_date_and_time();

there are a number of other methods you can also include such as:

$datetime->end_date_and_time()
$datetime->end_time()
$datetime->date_range()

Viewing 3 reply threads

The support post ‘Shortcode’ 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