The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Role Scoper
[resolved] Can't filter out posts from a certain category (2 posts)

  1. aaronedmonds
    Posted 5 years ago #

    First off, thanks for the great plugin!

    I've noticed an issue when using the plugin though. When I try to filter a WP_Query with a "cat=-25" parameter, nothing seems to happen as long as Role Scoper is enabled but everything works fine (i.e. posts from that category are hidden) once I disable the plugin. Any thoughts?

  2. Kevin Behrens
    Plugin Author

    Posted 5 years ago #

    It should work if you use the API function call instead of directly instantiating the class:

    $results = query_posts( 'cat=-25' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Role Scoper
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic