Listing Categories
Posted: April 8th, 2011, 2:48 pm
Hey guys, first I would like to say that s2member is an amazing plugin really easy and simple to customize. You guys must be proud of it.
Now my question:
I have a blog where I display the 10 latest posts, and on the sidebar I have a list with all my categories generated by wp_list_categories();
The thing is, I would like to exclude categories that are blocked for a certain type of user. (I'm currently using the Alternative view protection, but it doesn't affect this function)
Is there any way to do that?
What i could do if there isn`t any avaiable option to do that is to get all Categories that are blocked ID and insert it into the function so it would be something like:
$blocked_cats;
wp_list_categories("exclude=$blocked_cats");
But I don`t really know how to get those categories.
So I hope you guys can help me. Thanks
Now my question:
I have a blog where I display the 10 latest posts, and on the sidebar I have a list with all my categories generated by wp_list_categories();
The thing is, I would like to exclude categories that are blocked for a certain type of user. (I'm currently using the Alternative view protection, but it doesn't affect this function)
Is there any way to do that?
What i could do if there isn`t any avaiable option to do that is to get all Categories that are blocked ID and insert it into the function so it would be something like:
$blocked_cats;
wp_list_categories("exclude=$blocked_cats");
But I don`t really know how to get those categories.
So I hope you guys can help me. Thanks