Hi there!
I got a quick question. <?php the_category(', ') ?> prints category + children but is there any code that DONT print children? Using 2.7.
Thanks.
Hi there!
I got a quick question. <?php the_category(', ') ?> prints category + children but is there any code that DONT print children? Using 2.7.
Thanks.
You probably want something like
wp_list_categories(array('hierarchical' => false));
Look at the depth=1 parameter with the template tag, wp_list_categories().
Resources:
Stepping Into Template Tags
Stepping Into Templates
Template Hierarchy
Forgot to write that this is in a post. It´s only there i would like to hide children, not anywere else.
You must log in to post.