Dealing with problematic themes
Due to highly customized or poorly coded single.php templates, some themes do not work normally in the single event pages.
To avoid this issue WP Event Manager requires the following things,
- 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 themes
To check if the issue is caused by the themes, switch to Twenty Twelve theme in WordPress and compare your page to the demo.
Fixing your single template
Events are custom post types so you can use the template hierarchy based on your requirements.
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 the 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:
while ( have_posts() ) : the_post(); ?> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-content"> <?php the_content(); ?> </div> endwhile;