Support

Home Forums Event Espresso Premium Ability to create custom templates based on event category?

Ability to create custom templates based on event category?

Posted: August 11, 2017 at 10:43 am


genomebc

August 11, 2017 at 10:43 am

Hi there,

I was wondering if there is a way that I can re-arrange a single event template based on the event’s category (or some other taxonomy)?

Thanks


Josh

  • Support Staff

August 11, 2017 at 11:24 am

Hi there,

That’s an interesting idea. The tricky thing about assigning a template based on a taxonomy is an event can be assigned to more than one category/custom taxonomy.

The recommended way to assign a custom template is by using the Page Template selector metabox within the event editor. Additional custom templates can be built by following the guide from the WP theme developer documentation:

https://developer.wordpress.org/themes/template-files-section/page-template-files/#creating-page-templates-for-specific-post-types

Another approach you could take is you start with one template and add conditional checks within the template to change the layout if the currently displayed event is assigned to a specific category.

The support post ‘Ability to create custom templates based on event category?’ 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