Hide posts in content archives for specific roles

Members 2 posts 2 voices

  1. Hi there!
    I want to achieve the following:
    posts that are only accessable for specific roles via the Content Permission feature should completely hide from content archives & search.

    I tried already per this thread but had no success yet: http://themehybrid.com/board/topics/prevent-members-only-content-from-appearing-in-wp_query-loops

    I am thankful for any tips or help to point me in the right direction.
    So for example how could I tweak the pre_get_posts query manipulation for my needs from the example in the above link?

    Thank you!