WordPress.org

Ready to get started?Download WordPress

Forums

Need help with wp_list_categories, please (4 posts)

  1. dwellydesigns.com
    Member
    Posted 5 years ago #

    Hello all. Stating the obvious, I am very new to WordPress and I am having trouble with wp_list_categories. What I would like to accomplish is changing the order of the categories. I want to exclude certain categories and change the order of the listing of the categories. I have been able to exclude cats, include cats and sort alphabetically or by ID - however I cannot get the order exactly the way that I want.

    http://dwellydesigns.com/chipandputt - on the green nav bar, I would like swap Bridgestone and Miura but no matter what I do, I cannot get the coding correct. I would prefer to do this without a plugin or widget if possible.
    The current code is <?php wp_list_categories('include=58,18,33,20,21,94,41,93&title_li='); ?>

    Any advice would be appreciated!!!

    Erik

  2. iridiax
    Member
    Posted 5 years ago #

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

    Try using exclude instead of include and orderby (you may also need order with this depending on how you want things ordered).

    Another option to complex ordering is to use multiple wp_list_categories or just create regular html links to some categories.

  3. dwellydesigns.com
    Member
    Posted 5 years ago #

    Thank you for your reply. When you say 'you may also need order' - how would that look in code view?

  4. dwellydesigns.com
    Member
    Posted 5 years ago #

    Anyone else point me in the right direction? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.