WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar empty on single post page? (8 posts)

  1. Johnneke
    Member
    Posted 7 years ago #

    Hello everybody, I'm stuck on a little problem. My site navigations gone when I view a single post of my blog. Suddenly the sidebar is only filled with the search box and nothing else. Is this normal? I checked the single.php in my template and it has the get sidebar code in it. Any help would be greatly appreciated.

    Another small problem I have is that my rss2 feed is not working, I get a error page on http://www.mysite.com/?feed=rss2 Do I need to install a plugin for this to work? ?feed=comments-rss2 is also not working.

  2. Johnneke
    Member
    Posted 7 years ago #

    Can no one help me?

  3. Funkphenomenon
    Member
    Posted 7 years ago #

    You should probably show some code, because it's impossible to tell what the problem is without it.

  4. Johnneke
    Member
    Posted 7 years ago #

    http://pastebin.ca/566313

    Here is my sidebar.php from my template that I use, I readed somewhere it could have to do with this

    you can check the site at http://www.scenequality.com

  5. Johnneke
    Member
    Posted 7 years ago #

    My rss feed is working now btw so it's only the sidebar issue

  6. Funkphenomenon
    Member
    Posted 7 years ago #

    When I check the generated HTML of a single post, it only shows the search box in the sidebar.
    1) Are you certain that single.php has a line that says <?php get_sidebar(); ?> ?
    2) You might want to check your meta-description, double content-id (there cannot be two id's with the same name on one page) and other things that generate HTML-errors on a single post page. It might solve the problem, it might not, but it certainly helps to exclude some factors that could be related.

  7. moshu
    Member
    Posted 7 years ago #

    Delete the if statement from your sidebar: lines 40 and 60.

  8. Johnneke
    Member
    Posted 7 years ago #

    Thank you! Solved my problem

Topic Closed

This topic has been closed to new replies.

About this Topic