I have a custom sidebar I designed for a particular category. What I'm trying to do is list only that category and it's children in the sidebar using the wp_list_categories(); function. I haven't had luck using the include , or children arguments.
I have a custom sidebar I designed for a particular category. What I'm trying to do is list only that category and it's children in the sidebar using the wp_list_categories(); function. I haven't had luck using the include , or children arguments.
Is the custom sidebar only to be show when you're viewing a post within that category? If so, perhaps you could call a different sidebar using in_category?
Yeah, I do call a custom sidebar just for that category. The problem is I if use the "include" argument it only includes that one category and NOT the children. If I use the child_of argument it only shows the children. Looking for an argument that would include 1 category and it's children only
There's a Fold Category plugin that you might be able to hack or re-use.
This topic has been closed to new replies.