WordPress.org

Support

Support » How-To and Troubleshooting » wp_list_cat woes

wp_list_cat woes

  • A couple of weeks I edited the sidebar.php in my themes dir b/c I wanted it to show the categories in ID order. I changed the code to <?php wp_list_cats(‘sort_column=id’); ?>

    and it worked perfectly. A week ago the categories went back to being ordered by name. The code in the sidebar.php in the themes dir is exactly the same. I’m using the Andreas09 theme.

    Something else is overriding the categories section of the sidebar.php file in the Andreas09 theme dir b/c even if I delete the <?php wp_list_cats(‘sort_column=id’); ?> line all together, the categories still show up.

    Does anyone know what file is overriding it? I’ve got the following plugins activated – Akismet, Sidebar Widgets, and Google Search Widget.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I’d place my bets on Sidebar Widgets. Is that plugin disabled? If not, disable it and see what happens.

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    If you’re using Sidebar widgets, then the sidebar.php doesn’t control the content of your sidebar, the widgets do. Go to Presentation->Sidebar widgets.

    You can get new widgets to use at http://widgets.wordpress.com , including some really easy to configure category list widgets, if you don’t like the default one.

    Thank you so much! I downloaded the Category Replacement Widget and it worked flawlessly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wp_list_cat woes’ is closed to new replies.