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.

    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!



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.