WordPress.org

Ready to get started?Download WordPress

Forums

child_of in list_cats() doesn't work (1 post)

  1. dradra
    Member
    Posted 7 years ago #

    I tried to use list_cats display sub-categories in only one category, whose ID is 8. My code is like that:

    list_cats(false, '', 'name', 'asc', '', false, false, true, true, true, true, 8, 0, false, '', '', '', false);

    But I got all categories. It seems the parameter child_of doesn't work.

    I also tried using 'child_of=8', failed either.

    Anyone can help? Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags