• Resolved simasa

    (@simasa)


    Hello,

    I am trying to show one category, but exclude some posts from it. How come this code doesn’t work?

    query_posts(array('cat=5'&"post__not_in" => array(30)));

    It should show category 5 but exclude post 30. However, it only shows category 5 but does not exclude anything. Any help?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘query_posts: show category but exclude some posts from it’ is closed to new replies.