Dealing with problematic themes

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:

  1. while ( have_posts() ) : the_post(); ?> 
  2.     <h1 class="entry-title"><?php the_title(); ?></h1>
  3.      <div class="entry-content">
  4.         <?php the_content(); ?>
  5.     </div>
  6.  endwhile;


    • Related Articles

    • Updating WP Event Manager

      Automatic Update WP Event Manager always strives to achieve perfection in every way and that is why we constantly update our plugins so that you can enjoy their innovative features. Here are the steps that you need to take to update WP Event Manager: ...
    • Installation of WP Event Manager

      Automatic Installation of FREE WP Event Manager Installing WP Event Manager is just a matter of a few clicks. You can add WP Event Manager to your website by using the dashboard offered to you at the backend of the CMS. To install the plugin ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Create or pick categories from Free/ Core WP Event manager

      Events are classified into various types based on the kind of visitors they have. Visitors come from different backgrounds. That is why an event organizer or admin must ensure that they make a lot of event categories available to their clients. This ...
    • Event listings not showing up in the [events] page

      The most common reason behind this particular issue is an error in the Java Script as events are loaded through Ajax. To debug the Javascript error when the event listings are not displayed, you need to pass through the following steps: Go to your ...