WordPress.org

Ready to get started?Download WordPress

Forums

Drop down categories doesn't disply correctly (8 posts)

  1. jianwei87
    Member
    Posted 5 years ago #

    The drop down categories doesn't disply correctly. I have add more the 5 sub categories. But it just show the 5 categories. Why?

    And why the sub categories menu is not sort by name? How to make it sort by name?

    http://freakfinder.net

  2. MichaelH
    Member
    Posted 5 years ago #

    You will want to use the hide_empty=0 argument with the template tag, wp_dropdown_categories().

    Also use the orderby=name argument.

  3. jianwei87
    Member
    Posted 5 years ago #

    After i change orderby=name the other categories will miss. Seem it didn't change any thing when i try to set the hide_empty value to 0 and few the sub categories will miss. Why?

    wp_list_categories('number=11&hierarchical=1&orderby=name&hide_empty=0&title_li=');

  4. MichaelH
    Member
    Posted 5 years ago #

    Wonder if the number=11 argument is part of the problem?

  5. jianwei87
    Member
    Posted 5 years ago #

    Ya i have delete the number=11 value. But after i delete the value why the categories will sort by name? I just wan the sub categories sort by name.

  6. MichaelH
    Member
    Posted 5 years ago #

    Delete the number=11&

  7. jianwei87
    Member
    Posted 5 years ago #

    ya i have deleted the number=11&. But how to make the main categories do not sort by name?

  8. MichaelH
    Member
    Posted 5 years ago #

    Use orderby=ID instead of orderby=name and please review the link to http://codex.wordpress.org/Template_Tags/wp_dropdown_categories for more info

Topic Closed

This topic has been closed to new replies.

About this Topic