Support » Fixing WordPress » Sidebar not complete on Comments Page

  • My sidebar only shows categories on the comments page and nothing else? If you go to my homepage on my blog at and notice how the sidebar is setup and now click on one of my test posts, you will see that my sidebar only shows the search and categories.

    How can I retrieve the same sidebar as posted on my homepage? I am using the same <?php get_sidebar(); ?> tag for all pages.

Viewing 11 replies - 1 through 11 (of 11 total)
  • I assume you are working from the K. (default) theme. Check your sidebar.php template file for a bunch of if_statements and edit them.

    Yes, I am using the default theme. I see nothing unusual with the if_statements to warrant anything peculiar. I am not a .php coder either, but know enough to do some editing from time to time.

    I need more help with this. If anyone needs to look at my single.php or sidebar.php script, let me know.

    Can someone please help me with this?

    Believe me, your problem is what I stated above. When you edited the original sidebar.php you didn’t watch where did you put your stuff. There is a bunch of code in there saying: if this is the homepage – show this, if this is an archive page – show that, if is category – show whatever.
    Start over… or paste your sidebar.php code to

    Ok….I took at second look at my sidebar.php script and noticed one line that stated exactly this:

    <?php /* If this is a category archive */ } elseif (is_category()) { ?>
    You are currently browsing the archives for the <?php single_cat_title(”); ?> category.

    The problem is, I do not know what to edit or add to this line in order for it to show all my links instead of just the categories on the comments page. What do I add to this line of code. If I knew how to edit it, believe me, I would not be asking for help on here.

    Thank you for your time,

    Please, read again the last line of my reply 🙂
    (and post back with the URI)

    ok…here is the URI:

    Try this one, hope it works:

    YEsssss….works like a charm! Thank you very much. Was there much that you changed?

    As I suspected… you had this line:
    <?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
    and all your sidebar items came after this line, which means they were displayed only if it was the main page (=home) or a Page. The end of the code is this
    <?php } ?>
    I just took out everything from there and moved above the first code line.

    Ahh….thank you.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Sidebar not complete on Comments Page’ is closed to new replies.