• Resolved WebDeb

    (@sillymoney)


    Hello,
    Have tried various things suggested but somehow so far the right sidebar is not displaying any content
    This is the site with Striking theme.
    https://www.dogsoncall.org/events/pet-partners-evaluation-4/

    Successfully created single-event.php, get_sidebar is included and Events Manager > pages > events Pages> display as = posts

    I proved to myself that it is indeed using this template and below is the code.

    What am I missing, please? Thank you for a great plugin.

    <?php
    /**
     * The Template for displaying all single posts.
      * dbvdb - copied to single-events.php
     */
    $post_id = get_queried_object_id();
    $blog_page = theme_get_option('blog','blog_page');
    if($blog_page == $post_id){
    	return load_template(THEME_DIR . "/template_blog.php");
    }
    
    $layout = theme_get_inherit_option($post_id, '_layout', 'blog','single_layout');
    $content_width = ($layout === 'full')? 960: 630;
    get_header();?>
    <article <?php post_class(); ?>>
    <?php echo theme_generator('introduce',$post_id);?>
    <div id="page">
    	<div class="inner <?php if($layout=='right'):?>right_sidebar<?php endif;?><?php if($layout=='left'):?>left_sidebar<?php endif;?>">
    		<?php echo theme_generator('breadcrumbs',$post_id);?>
    		<div id="main">
    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    		<?php get_template_part('content','single');?>
    <?php comments_template( '', true ); ?>
    <?php endwhile; // end of the loop.?>
    		</div>
    		<?php get_sidebar(); ?>
    		<div class="clearboth"></div>
    	</div>
    </div>
    </article>
    <?php get_footer(); ?>

    https://www.ads-software.com/plugins/events-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Custom post for Single event – no sidebar Striking theme’ is closed to new replies.