Dealing with problematic themes

Dealing with problematic themes

Due to highly custom or poorly coded single.php template, some themes do not work normally with single event pages.

WP Event Manager requires following things to work properly.

  • Content being output via the_content() function. For more information, Click here.
  • A valid ‘loop’. For more information, Click here.


Determining if the problem is caused by the theme

To check if the issue is caused by the themes, change to Twenty Twelve theme in WordPress and compare your page to the demo.


Fixing your single template

Events are custom post type so you can use the template hierarchy according to the requirement.

single-event_listing.php template file in your theme is always used for events. For starting, you can copy the contents of single.php or page.php to this file so it contains the html your theme uses.

Now you can customize single-event_listing.php template, removed and added new code and valid loop.


A valid loop

Here is a sample of a legitimate loop, complete with heading and substance/content: