WordPress.org

Support

Support » How-To and Troubleshooting » Reorder Categories

Reorder Categories

  • Hello.
    How can we reorder categories? I searched, yet could not find a specific solution to this.
    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • Using list_cats, you can order by name or ID. So, if ordering by name isn’t getting you what you want, you can order by ID. Just make sure you create your categories in the order you want them to display by id (they can be displayed ascending or descending…)
    More info:
    http://wiki.wordpress.org/index.php/TemplateTags#Categoryx20.tags
    Hope this helps.

    I don’t know about empty cats (I can’t read the code), but you can sort cats for display simply by adding spaces to the cat name.
    More spaces = higher up the display
    Ugly ? yes
    Does it work ? Yes
    And if you later add a cat that you want displaying higher than it’s ID, it works too.

    Nice One! That is really sneaky! It also worked like a charm!
    What did you mean by “I don’t know about empty cats (I can’t read the code), “
    I would like to show the categories to be used as navigation. I could write a sample message for each of them, just seems a bit clunky to do.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Reorder Categories’ is closed to new replies.
Skip to toolbar