Support

Home Forums Event Espresso Premium Just a list of dates

Just a list of dates

Posted: June 3, 2019 at 2:03 pm

Viewing 3 reply threads


HSHV

June 3, 2019 at 2:03 pm

Hi there! Is there a shortcode that will *just* list the upcoming dates of an event?


Josh

  • Support Staff

June 3, 2019 at 2:24 pm

Hi,

There isn’t a shortcode but there is a template tag:

espresso_list_of_event_dates() which can be used in a PHP template or be used in a custom shortcode function. In other words, a custom shortcode could be built that makes use of that function.


HSHV

June 3, 2019 at 2:48 pm

Thanks! I’m having a hard time finding the CPT template. The wiki says it’s here: wp-content/plugins/event-espresso — but no go. Can’t seem to find the single-espresso_event.php file, either — any thoughts?


Josh

  • Support Staff

June 3, 2019 at 3:11 pm

Event Espresso will actually use your theme’s single.php template, then it injects the event content where the_content() is called.

If you want to scrap that and build your own template for displaying events, what you would do is create a new file in your WordPress theme folder, name it single-espresso_events.php. There’s more detailed instructions here:

https://eventespresso.com/wiki/ee4-custom-post-types/#single_event_template

Viewing 3 reply threads

The support post ‘Just a list of dates’ 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