The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Admin bar thinks all of my pages are categories (WP 3.1 RC) (2 posts)

  1. Tom Lany
    Posted 5 years ago #


    I have a custom theme for one of my sites. When I tried it with WordPress 3.1, I noticed that the admin bar seems to think that all of my pages are category pages.

    If I am on any page outside of the admin, the admin bar says "Edit Category", etc. as it would on category pages.

    The admin bar is working as expected with Twentyten, so I am pretty sure this is an issue involving my theme. Let me know if you have any ideas as to why the admin bar is not working here.

    Merry Christmas!!

  2. Tom Lany
    Posted 5 years ago #

    I was able to get this fixed.

    I figured out that I was using query_posts, where I should have been using get_posts in my theme's sidebar. WordPress was then assuming that this secondary loop was my main loop.

    The Debug Bar plugin was helpful in debugging my theme. I grabbed the latest version via SVN.

Topic Closed

This topic has been closed to new replies.

About this Topic