WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How do I list only sub categories of a particular categories?

[Resolved] How do I list only sub categories of a particular categories?

  • Hi, I am using the below tag (http://codex.wordpress.org/Template_Tags/list_cats). It would show all sub categories from all parent categories (which are not displayed…good!)
    <?php list_cats(FALSE, ”, ‘ID’,
    ‘asc’, ”, TRUE, FALSE,
    FALSE, FALSE, TRUE,
    FALSE, TRUE, ”, FALSE,
    ”, ”, ”,
    TRUE); ?>

    What I want to do is to limit the display to just sub cat of a particular cat with ID = 6. The below code yielded empty

    <?php list_cats(FALSE, ”, ‘ID’,
    ‘asc’, ”, TRUE, FALSE,
    FALSE, FALSE, TRUE,
    FALSE, TRUE, 6, ” , FALSE,
    ”, ”, ”,
    TRUE); ?>

    What did I do wrong?

    Thanks in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] How do I list only sub categories of a particular categories?’ is closed to new replies.
Skip to toolbar