• jamesgreenhouse

    (@jamesgreenhouse)


    Is there a way to exclude all posts by an author except those in category 16 for example?

    i currently have this

    query_posts($query_string . '&author=-2');

    but what i need is

    query_posts($query_string . '&author=-2&cat=16');

    However if author 2 adds a post to cat 16 you won’t see it as all his / her posts are hidden. The second example show’s nothing at all.

Viewing 1 replies (of 1 total)
  • flamenco

    (@flamenco)

    How about

    query_posts($query_string . '&author=2&cat=16');

    to show only Category 16 for that author, or

    query_posts($query_string . '&cat=16');

    for showing Category 16 from all authors?

Viewing 1 replies (of 1 total)
  • The topic ‘Filter posts problem’ is closed to new replies.