WordPress.org

Support

Support » Themes and Templates » [Resolved] Sidebar not appearing on single post pages

[Resolved] Sidebar not appearing on single post pages

  • Hi all — I’m developing my new blog locally, so I can’t provide a link, but here’s my problem:

    My two sidebars (one is actually the footer) is calling just fine on the homepage, but for single posts it’s not appearing. I have a moderate skill level when it comes to WordPress code, but I just can’t figure this out. Here is what my single post PHP looks like:

    <?php
    /**
     * The Template for displaying all single posts.
     *
     * @package WordPress
     * @subpackage Twenty_Twelve
     * @since Twenty Twelve 1.0
     */
    
    get_header(); ?>
    
    	<div id="primary" class="site-content">
    		<div id="content" role="main">
    
    			<?php while ( have_posts() ) : the_post(); ?>
    
    				<?php get_template_part( 'content', get_post_format() ); ?>
    
    				<?php comments_template( '', true ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Any thoughts?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael

    @alchymyth

    Forum Moderator

    you need to have widgets in the ‘Main Sidebar’ area under dashboard – appearance – widgets for the sidebar to show.

    I know that!

    The problem was with a comments-related plug-in. Once I deactivated it everything worked just fine.

    Michael

    @alchymyth

    Forum Moderator

    The problem was with a comments-related plug-in.

    you didn’t mention that in your question;
    which plugin exactly?

    I didn’t know it was plugin related until I started troubleshooting (aka trying everything I could think of!)

    It was SEO Facebook comments

    Michael

    @alchymyth

    Forum Moderator

    does this mean the primary problem is ‘solved’?

    if so, please mark this topic as ‘resolved’ – thanks 😉

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Resolved] Sidebar not appearing on single post pages’ is closed to new replies.
Skip to toolbar