WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
Conflict with post_is_in_descendant_category Code (4 posts)

  1. shoot2score67
    Member
    Posted 3 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

  2. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

    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 );
  3. shoot2score67
    Member
    Posted 3 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 :)

  4. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic