[wp-hackers] How to show only first level sub categories under a main category
scribu at gmail.com
Sun Nov 1 15:38:10 UTC 2009
If you will look at the documentation for wp_list_categories(), you'll see
there's a 'depth' argument. You can use that.
On Sun, Nov 1, 2009 at 2:59 PM, sunil sk <sksunil at gmail.com> wrote:
> I am a new bee in wordpress.
> I have a list of categories. Under each category there are many
> subcategories. How can I ** list only 1st level of subcategories under a
> main category. I don't want to list 3rd level of category. I need to show
> only 2nd level of category under a main category.
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers