Title: Loop Help
Last modified: August 20, 2016

---

# Loop Help

 *  [masellaus](https://wordpress.org/support/users/masellaus/)
 * (@masellaus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/)
 * What I am wanting to do and I’m not sure how is to include in my loop 10 excerpts
   on the page but I want to skip the most current 5. I know that I have to put 
   a wp_query somewhere with a number of posts and an offset but I don’t know how
   to modify the current loop seen below to do that. Any help is appreciated.
 *     ```
       <?php $theme->hook('content_before'); ?>
            <?php
                if (have_posts()) : while (have_posts()) : the_post();
                      get_template_part('post', 'homepage');
                   endwhile;
                else :
                   get_template_part('post', 'noresults');
                endif;
       ```
   

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

 *  [Marvel Labs](https://wordpress.org/support/users/royalprince/)
 * (@royalprince)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142721)
 * Dear masellaus.
 * care to explain with an example. please mention the site name as well.
 *  Thread Starter [masellaus](https://wordpress.org/support/users/masellaus/)
 * (@masellaus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142869)
 * billmasella.com
 * It is my personal blog… I have a scroller at the top that has the most recent
   5 articles displayed in rotation. I don’t want to include those in the main body
   of that page so I would like it to start at the 6th most recent post in the body
   so as to not duplicate content on that main page.
 *  Thread Starter [masellaus](https://wordpress.org/support/users/masellaus/)
 * (@masellaus)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142905)
 * Since it doesn’t have the wpquery in there at all I am guessing I would have 
   to add a line to do the query and then use the result somewhere in the while?
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142906)
 * I’m sorry but your chosen theme is not released under GPL. Non GPL products are
   not welcome in the WordPress community. Official WordPress policy states that
   all plugins and themes that are publicly released are required to adhere to [http://wordpress.org/about/gpl/](http://wordpress.org/about/gpl/)
 * I would strongly recommend that you read [this article](http://www.chipbennett.net/2010/12/10/only-download-wordpress-themes-from-trusted-sources/)
   and then download another theme.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142909)
 * general and untested:
 * _**either **_modify the loop with a query and the ‘offset’ parameter;
 * i.e. add something like this before the ‘if(have_posts())’:
 * `global $query_string; query_posts( $query_string .'&offset=5' );`
 * this will break any pagination you might have had…
 * _**or **_preferrable, try to get the post ids from the posts in the slider, then
   use this with the ‘post__not_in’ parameter in a query before the loop;
 * for the approach, see [http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action](http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action)
 * [http://codex.wordpress.org/Class_Reference/WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query)

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

The topic ‘Loop Help’ is closed to new replies.

## Tags

 * [offset](https://wordpress.org/support/topic-tag/offset/)
 * [the-loop](https://wordpress.org/support/topic-tag/the-loop/)
 * [wpquery](https://wordpress.org/support/topic-tag/wpquery/)

 * 5 replies
 * 4 participants
 * Last reply from: [Michael](https://wordpress.org/support/users/alchymyth/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/loop-help-2/#post-3142909)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
