WordPress.org

Ready to get started?Download WordPress

Forums

How to re-arrange the categories in the nav bar for months? (2 posts)

  1. neosin09
    Member
    Posted 3 years ago #

    I have a main cat named 2010, then sub cats with the names of months, how could i order it so that it lists the months in the right order?

  2. neosin09
    Member
    Posted 3 years ago #

    to answer my own question my solution was to name the cats by name but then name the slugs 01-2010 for jan, 02-2010 for feb and so on. Then in the cat list put it to orderby slug. Works perfect.

    2010
    - Jan 2010
    slug 01-2010
    - June 2010
    slug 06-2001
    - feb 2010
    slug 02-2010

    Works perfect.

    Notes:
    http://codex.wordpress.org/Template_Tags/wp_list_categories

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.