shoot2score67
Member
Posted 2 years ago #
When I turn on Role Scoper (which is a mighty fine plugin) the custom "post_is_in_descendant_category" code stops functioning. For the life of me I can't figure out why.
We use descendant category in our theme so it's quite important for that code (from the WP Codex) to work properly.
Any ideas?
Thanks!
Chris
Can you show me your calling code and input values?
I'm not seeing any problem when I call it this way:
global $post;
$terms = get_terms( 'category', array( 'fields' => 'ids' ) );
$test = post_is_in_descendant_category( $terms, $post );
shoot2score67
Member
Posted 2 years ago #
Hi- sorry for delay. I think I found issue. For some reason when we have the Role Scoper plugin activated it hides WP sub-categories (i.e. only lists parents) in admin screens. And that also seems to impact the site behavior.
I've tried endlessly to turn different RS options on/off with no luck. No matter what we do RS seems to hide categories!
As soon as I deactivate the plugin all is well again. Version 1.3.34.
Great plugin, but this is driving me nuts :)
For some reason when we have the Role Scoper plugin activated it hides WP sub-categories (i.e. only lists parents) in admin screens.
I'll need more info on your configuration, since I'm not seeing that error. If you drop me a contact I can log in and take a quick look.