WordPress.org

Ready to get started?Download WordPress

Forums

Customise categories list (3 posts)

  1. ChrisColston
    Member
    Posted 1 year ago #

    Hi, I'm sure this is really simple but i'm trying to use

    <?php wp_list_categories(); ?>

    to display the categories list but I want to customise the order and add exclusions. i.e. 5,7,4,37,11,6,38,12 exclude 3,1

    much appreciated if anyone can help

  2. Have you looked at the examples on the codex?

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

  3. ChrisColston
    Member
    Posted 1 year ago #

    Yes, i can get it to display and exclude, but I can only order by ASC, DESC, it's no biggie, I just didn't want to avoid html and bring them in via PHP

Topic Closed

This topic has been closed to new replies.

About this Topic