Enabling full template support

Enabling Full Template Support

WP Event manager uses custom post types therefore post archives can be enabled and fully themed.

You can create template files for archives of events using WordPress Template Hierarchy.

Note: For the single event listings, WP Event Manager by default use single-event_listing.php.


Adding Theme Support

Inside your theme, include the following code:

    add_theme_support( 'event-manager-templates' );

After doing this, go to admin panel, Settings -> Permalinks and save. Custom Post Type archives will then be activated. Then you will see the even listings archive (by default) at yourdomain.com/events


Template Files

The WordPress Template Hierarchy will be utilized. Theme include following key template.

  1. archive-event_listing.php Custom Post Type Templates
  2. taxonomy-event_listing_category.php Displaying Custom Taxonomies
  3. taxonomy-event_listing_type.php Template Hierarchy