Query posts without a specific ID
Most of the things you can do with a query are described in the Codex page for WP_Query You need to use the ‘post__not_in’ parameter eg: $args = array( ‘post__not_in’ => array(’34’,’54’), // post ids ‘post_type’ => ‘page’ );`