WordPress.org

Forums

[resolved] Categories sorting (4 posts)

  1. Matak
    Member
    Posted 8 years ago #

    When i create categories for my blog they are sorted by their ID tag (i guess), but in order that first categorie stays on bottom then second goes over then the third over second etc. (well if u have ever created categorie you probably know what am i talking about)
    I searched forum but i didn't find any (easy) ways to sort categories.
    It would be a good idea to develop some way in admin panel.
    And, btw, wordpress is fine!

  2. Michael Bishop

    Posted 8 years ago #

    That's the default of the template tag. You can alter that by editing the tag, to sort by Id or name, and ascending as well as descending order.

    So depending on what you want, you can get several different views.

    Template_Tags/wp_list_cats
    Template_Tags/list_cats

    If you need more help, just shout.

  3. tsguitar
    Member
    Posted 8 years ago #

    You can sort categories by their ID numbers or their names and you can list the categories in ascending or descending order:
    http://codex.wordpress.org/Template_Tags/list_cats
    http://codex.wordpress.org/Template_Tags/wp_list_cats

    (miklb beat me to it; I feel so deflated...)

  4. Matak
    Member
    Posted 8 years ago #

    Point was to have an easy way to do that, your solution requires editing code.

    But intresting thing is that in "LINKS -- Link Categories", when you create new categorie there is an option in sorting

Topic Closed

This topic has been closed to new replies.

About this Topic