WordPress.org

Ready to get started?Download WordPress

Forums

Limit Number of Categories using wp_list_cats (2 posts)

  1. stinker
    Member
    Posted 7 years ago #

    Using wp_list_cats, I made several nav menus of categories within categories. Unfortunately, wp_list_cats doesn't appear to have a built-in limit on the number of categories shown.

    CATEGORY 1
    -- subcategory1
    -- subcategory2
    -- subcategory3

    CATEGORY 2
    -- subcategory4
    -- subcategory5
    -- subcategory6

    I want to limit the number of categories in each list to 8.

    Does this require a plugin or a hack?

    If possible, it would be nice to have the 8 category links be sorted by name, most popular, or most recent.

  2. Rebecca Putinski
    Member
    Posted 7 years ago #

    I would also like to achieve this. I need to limit the total number of categories I have to 5. Also perhaps randomize them?

Topic Closed

This topic has been closed to new replies.

About this Topic