WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar not appearing on single post pages (6 posts)

  1. kateh12
    Member
    Posted 1 year ago #

    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?

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    you need to have widgets in the 'Main Sidebar' area under dashboard - appearance - widgets for the sidebar to show.

  3. kateh12
    Member
    Posted 1 year ago #

    I know that!

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

  4. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

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

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

  5. kateh12
    Member
    Posted 1 year ago #

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

    It was SEO Facebook comments

  6. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    does this mean the primary problem is 'solved'?

    if so, please mark this topic as 'resolved' - thanks ;-)

Topic Closed

This topic has been closed to new replies.

About this Topic