Support » Fixing WordPress » post__not_in multiple criteria?

  • Resolved Jenny Beaumont

    (@jennybeaumont)


    Hi folks,

    I have a secondary query on my page that is currently set up as follows:

    query_posts(array('post__not_in'=>$do_not_duplicate,'offset'=> 3));

    Now I need to exclude an individual post from this loop. I tried using post__not_in a second time, and different variations for syntax to try and give it 2 definitions – not working. Is it possible? Or does anyone know of a different way to exclude an individual post ?

    thanks!
    -jennyb

Viewing 2 replies - 1 through 2 (of 2 total)
  • Michael

    (@alchymyth)

    Forum Moderator

    try to merge the extra individual post id:

    query_posts(array('post__not_in'=>array_merge($do_not_duplicate,array($indiviual_post_id)),'offset'=> 3));
    Jenny Beaumont

    (@jennybeaumont)

    my hero! 😀

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘post__not_in multiple criteria?’ is closed to new replies.