开发者

How can I filter child categories of "uncategorized" out of the loop?

I have some utility categories that are only used by my theme. How can I make sure that any call to categories exclud开发者_StackOverflowes the child categories under "uncategorized"?


Try something along the lines of:

wp_list_categories(array(
    "exclude" => get_cat_ID("Uncategorized")
));
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜