Support » Everything else WordPress » Hiding child categories.

  • I spent about two hours looking for how to hide child categories and I didn’t see anything in the Codex, so I thought I would post another thread for others to find.

    If you want to hide the child categories, just use the following function in place of your current list_cats() function.

    <?php wp_list_cats(‘children=0’); ?>

    You may also want to check out.
    http://wordpress.org/support/topic/45095
    and
    http://codex.wordpress.org/Template_Tags/wp_list_cats

    I’ll try to add something to the WordPress codex. If anyone else could add something more on this to the wordpress codex I’d be greatful!

    Thanks,

    Adam

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hiding child categories.’ is closed to new replies.