Title: query_posts, WP_query&#8230;getting confused
Last modified: August 19, 2016

---

# query_posts, WP_query…getting confused

 *  Resolved [bonanza9](https://wordpress.org/support/users/bonanza9/)
 * (@bonanza9)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/query_posts-wp_querygetting-confused/)
 * hi,
 * i’d like to create a homepage beginning with a short ‘home blurb’ post (id=188)
   at the top (which has been categorised in ‘home blurb’ – id=19), followed by 
   all other posts.
 * i’ve used `<?php query_posts("cat=-19"); ?>` before the loop to filter out the
   the home blurb post, but can’t figure out how to place the blurb above all the
   other posts.
 * i’ve been reading the docs for query_posts and WP_query, but i’m still unsure
   about how to get this working, or what to search for on the forums.
 * any help on this would be greatly appreciated.
 * cheers,
 * b9

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/query_posts-wp_querygetting-confused/#post-882258)
 * Could just use a plugin such as [WP-Sticky](http://wordpress.org/extend/plugins/wp-sticky/)
   for that.
 * Note, with Version 2.7 (November 2008) you will be able to say “Stick this post
   to the front page” for one or more posts.
 *  Thread Starter [bonanza9](https://wordpress.org/support/users/bonanza9/)
 * (@bonanza9)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/query_posts-wp_querygetting-confused/#post-882373)
 * thanks for your response.
    i decided to do this instead:
 *     ```
       <?php $home_blurb = new WP_Query('p=188'); ?>
       <?php while ($home_blurb->have_posts()) : $home_blurb->the_post(); ?>
       <?php $do_not_duplicate = $post->ID; ?>
       <div class="post" id="post-<?php the_ID(); ?>">
       <h1><?php the_title(); ?></h1>
       <div class="entry">
       <?php the_content(); ?>
       </div>
       ```
   
 * that i found on:
 * [http://www.jek2k.com/wp/index.php/2006/10/30/wordpress-displaying-content-outside-the-loop/](http://www.jek2k.com/wp/index.php/2006/10/30/wordpress-displaying-content-outside-the-loop/)
 * thanks again.

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

The topic ‘query_posts, WP_query…getting confused’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [bonanza9](https://wordpress.org/support/users/bonanza9/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/query_posts-wp_querygetting-confused/#post-882373)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
