fbpx
Celebrate International Yoga Day with us and get a flat 20 to 30% discount on products. Offer valid till 24 June. Use code: INTYoga24
How can we help?

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;

Dealing With Problematic Themes
Ashok Dudhat

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close