Support

Home Forums Event Espresso Premium Date times not showing on events list page

Date times not showing on events list page

Posted: August 10, 2020 at 1:00 am


frncastle

August 10, 2020 at 1:00 am

I have the event date times set to show in the event list template options but it doesn’t appear on the event page: https://nathan-castle.com/events/ How do I fix this?


Tony

  • Support Staff

August 10, 2020 at 6:02 am

Hi there,

That can happen if the theme is calling the_excerpt on the archives.

If you create a new page and add [ESPRESSO_EVENTS] to that page, does it show the sections you have set in the options there?

(Note’ I’m not saying you should use that in place of the above, just checking that the details are actually being injected)

Are you using a theme you’ve created yourself?


frncastle

August 10, 2020 at 7:41 am

Hi Tony,

Yes if I add [ESPRESSO_EVENTS] to a new page the date times do appear. I did not make the theme, the website uses Coaching by thimpress.


Tony

  • Support Staff

August 10, 2020 at 10:53 am

If you can send me a copy of the theme I’ll check to see if there’s an option/filter to change this.

If not you’ll need a custom archive template.


frncastle

August 12, 2020 at 8:07 am

Sorry for the delayed response, how do I send the theme files to you?


Tony

  • Support Staff

August 12, 2020 at 8:15 am

I’m assuming you have them downloaded and can .zip them, correct?

If so you can either host the .zip somewhere (for example the site itself using the media uploader) and then post the link for me to download here, or Dropbox etc.

Or, you can use a service such as WeTransfer and send them to support[at]eventespresso.com.

Finally, if you don’t have them downloaded but have FTP access I can use that to pull them directly if preferred, just send the details over using this form:

https://eventespresso.com/send-login-details/


frncastle

August 12, 2020 at 8:24 am

This reply has been marked as private.


Tony

  • Support Staff

August 14, 2020 at 4:08 am

Yeah, the theme calls its own excerpt function, which then only outputs a summary of the event details as EE won’t inject content into the_excerpt and there’s no option to use the full content on that output.

So the solution is to create a custom archive-espresso_events.php template that either outputs the details you want, or calls a custom version of the content.php template file which outputs the full content.

I’ve done this for you in your child theme HERE (2 additional templates, both are just copies of the current fils, archive-espresso_events.php just calls content-espresso_events.php, that file has all of the non-relevant PHP stripped from it and changed to call the_content. There’s also an additional filter added to functions.php which tells EE to inject the details even with a custom archive-espresso_event.php template file present (EE assumes you will be taking full control of the output otherwise).

Note that normally we would require a support token to create anything custom, investigating this meant I had the files pretty much done so I’ve done them for you but should not that this is unsupported but should help point you in the right direction.

The support post ‘Date times not showing on events 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