• I am using a theme that lists my categories across the top of the page, horizontally, but they are in alphabetical order from left to right. I tried the My Category Order plugin, but it didnt work. Any suggestions on how I can order my categories that are listed in my nav bar horizontally?

    This question has been posted before adn some said change the parameters of Order to DESC how do you do that? They werent sure it would work. Please help

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    The MyCategoryOrder plugin is the way top go. Did you read the instructions in its readme file? There are a few things you need to do besides just put its folder in the plugins file:

    1) from the plugin folder, move the file taxonomy.php to the /wp-includes/ folder

    2) If you aren’t using widgets, modify sidebar template to use correct orderby value:
    wp_list_categories('orderby=order&title_li=');

    If you are using widgets replace the standard “Category” widget with the “My Category Order” widget.

    Thread Starter pianotut

    (@pianotut)

    Mate i did that and it never worked! It worked and changed the order in the sidebar but my theme ahs the actegories in a horizontal manner just below the pages.

    Sorry – you need to do the same thing in header.php

    Thread Starter pianotut

    (@pianotut)

    You sure?

    Hi

    Without seeing your header code I can’t give you a 100% YES answer to that. if your header is using wp_list_categories to generate the menu, give it a try. save a copy of the code from before you make the change so if it doesn’t work you change it back.

    You of course have to create the order of the categories on the plugin admin page before it will work.

    The way the plugin works is it creates a new field in the database for a user-defined display order. The code change to wp_list_categories that is required is to tell WP to use this new database field when ordering the categories. WP doesn’t know about the new field otherwise since its not a builtin part of WP.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Category order : Horizontal Nav bar’ is closed to new replies.