Query posts without a specific ID

How would we query posts as long as the post does not equal the ID 2047?

Here is the current query.

Read More
<?php 
$args1 = array(
    'post_type' => 'options',
    'tag_slug__and' => array( $triplevel, $divingtrip, 'accommodation' ),
    'posts_per_page' => -1,
    'offset' => 1,
); 
query_posts( $args1 ); while (have_posts()) : the_post();
?>

I tried this…

query_posts( $args1 . 'p!=2047' );

..to no effect.

Any ideas?

Marvellous

Related posts

Leave a Reply

1 comment