WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. aaronedmonds
    Member
    Posted 3 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. kevinB
    Member
    Plugin Author

    Posted 3 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

About this Topic