开发者

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

开发者 https://www.devze.com 2022-12-11 14:42 出处:网络
I am using a category called \'blogs\'. Under that category I have many authors. Each author gets a category for himself.开发者_Python百科

I am using a category called 'blogs'. Under that category I have many authors. Each author gets a category for himself.开发者_Python百科

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


get_categories()

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

0

精彩评论

暂无评论...
验证码 换一张
取 消