Need help with wp_list_categories, please (4 posts)

  1. dwellydesigns.com
    Posted 6 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!!!


  2. iridiax
    Posted 6 years ago #


    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
    Posted 6 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
    Posted 6 years ago #

    Anyone else point me in the right direction? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.