Shir Gans
Shir Gans

Reputation: 2027

wordpressL How to array the child categories without any html tags?

I am using a category called 'blogs'. Under that category I have many authors. Each author gets a category for himself.

In the 'blogs' template I want to display nicely a for each category and the ecxerpt from the latest post.

Unfortunately, when I am trying to use wp_list_categories to query the child of that 'blogs' cat, I get a html code of list. I can't use it.

Any Ideas ? Thanks

Upvotes: 1

Views: 91

Answers (1)

Peter Lindqvist
Peter Lindqvist

Reputation: 10200

get_categories()

You need to specify child_of and retrieve the id of 'blogs'

Upvotes: 2

Related Questions