Support

Home Forums Event Espresso Premium How to use custom wordpress template to show event detail?

How to use custom wordpress template to show event detail?

Posted: August 13, 2014 at 1:56 am

Viewing 2 reply threads


tmvgroup

August 13, 2014 at 1:56 am

Is it possible to use a custom wordpress template in EE4 to display events list and event detail page without using shortcodes.


Tony

  • Support Staff

August 13, 2014 at 4:55 am

Hi Dana,

This depends on what you would like to achieve and how comfortable you are with WP_query

EE4 events are Custom Post Types, meaning you can interact with them in a similar way to standard posts. Currently the ESPRESSO_EVENTS shortcode is the easiest method to display an Event List, is there a reason you do not want to use this?


Tony

  • Support Staff

August 13, 2014 at 5:48 am

Just to add to this @Josh has previously created an example query that can be used within a page template, that is available here:

https://gist.github.com/joshfeck/e3c9540cd4ccc734e755

That simply output a UL of the event titles, with each events title linking to the event. It can be used a base to start from but again it will depend on exactly what you are trying to achieve.

Viewing 2 reply threads

The support post ‘How to use custom wordpress template to show event detail?’ 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