Support

Home Forums Event Espresso Premium Shortcode for event start time

Shortcode for event start time

Posted: August 6, 2017 at 9:06 pm

Viewing 1 reply thread


wolfpack4417

August 6, 2017 at 9:06 pm

Is there a shortcode I can use for the event start time? If not is it hard to set up a custom shortcode? I want to put that in the email. Right now I’m using the [DATETIME_LIST] shortcode, but that returns a ul and li, I just want the text and I really just want the start date, but if I have to have the full date that’s fine.


Tony

  • Support Staff

August 7, 2017 at 6:04 am

How hard it is to add your own shortcodes is relative so not something we can really answer, there’s an example you can use as a starting point here:

https://gist.github.com/Pebblo/e87cc8e30c4848dcdfe2

There are multiple different shortcode libraries, parsers and data sets passed to the messages system so you need to make sure you shortcodes use the correct ones and load in the correct library.

You can do this within the messages system without having to add your own shortcodes, and whilst [DATETIME_LIST] is wrapped within a UL and the default content for DATETIME_LIST does use LI’s there is nothing stopping you from removing those from within the template and outputting the data in a different way.

You can remove the UL’s and LI’s and then use the [DATE_START] and [DATE_END] to output only the date with no time.

Note that DATETIME_LIST loops over each datetime for the registration and outputs whatever details from the section for each datetime.

Viewing 1 reply thread

The support post ‘Shortcode for event start 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