Tag Archives: query_posts
How to Use WordPress Query_posts and Exclude a Page

How to Use WordPress Query_posts and Exclude a Page

Excluding pages from the WordPress query_posts loop is easy. You can exclude a page by its ID, Slug or Title. See the example below to get an idea how the WordPress query_posts function can work for you! Exclude a Page by ID //replace the 3,8 with your page ids <?php $args=array( ‘post__not_in’ => array(3,8), ‘post_type’ [...]

Read more