Title: Next_Posts_Link not displays same posts (not next posts) when using Offset.
Last modified: August 19, 2016

---

# Next_Posts_Link not displays same posts (not next posts) when using Offset.

 *  [Leroy00](https://wordpress.org/support/users/leroy00/)
 * (@leroy00)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/next_posts_link-not-displays-same-posts-not-next-posts-when-using-offset/)
 * Hi Guys,
 * I’m editing the Main Index Template to give my site more of a magazine feel. 
   I have 2 sections on the page that display featured stories and the 3 newest 
   stories, both using the get_posts() query.
 * I’ve now laid out the remaining section, which uses the main wordpress loop. 
   Due to the fact that I’ve already displayed 3 of the newest stories I do not 
   want to display them again when the main loop runs, so I’ve been trying to use
   offset to achieve this.
 * The problem is that when I use offset the correct number of posts are skipped,
   but when I click the Next_Posts_Link the same posts are diplayed again on page
   2, which should display the remaining posts.
 * I’ve tried the following to resolve this problem:
 * 1)
    query_posts(‘posts_per_page=6&offset=3’);
 * The offset works, but the same four posts are displayed on page 2.
 * 2)
    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args
   =array( ‘offset’=>3, ‘posts_per_page’=>6, ‘caller_get_posts’=>1, ‘paged’=>$paged,);
   query_posts($args); ?>
 * Again, the offset works, but the same four posts are displayed on page 2.
 * 3) I’ve tried creating a new WP_Query() object and referencing this in the loop,
   with the same results.
 * In all three cases, if I remove the offset parameter, when clicking the Next_Posts_Link
   the correct posts are displayed… all bar the three that I’m trying to skip.
 * If anyone could help, I’d be really grateful.
 * Thanks!

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

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/next_posts_link-not-displays-same-posts-not-next-posts-when-using-offset/#post-1821607)
 * offset does not work together with pagination (full stop)
 * to avoid the same posts being shown again, try and use the `$do_not_duplicate`
   method described in [http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action](http://codex.wordpress.org/The_Loop#Multiple_Loops_in_Action)
 *  Thread Starter [Leroy00](https://wordpress.org/support/users/leroy00/)
 * (@leroy00)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/next_posts_link-not-displays-same-posts-not-next-posts-when-using-offset/#post-1821759)
 * Hi alchymyth,
 * I’ve started testing this and it appears to be the solution that I’m looking 
   for; thanks for the quick response 🙂

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

The topic ‘Next_Posts_Link not displays same posts (not next posts) when using Offset.’
is closed to new replies.

## Tags

 * [next_posts_link](https://wordpress.org/support/topic-tag/next_posts_link/)
 * [offset](https://wordpress.org/support/topic-tag/offset/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * 2 replies
 * 2 participants
 * Last reply from: [Leroy00](https://wordpress.org/support/users/leroy00/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/next_posts_link-not-displays-same-posts-not-next-posts-when-using-offset/#post-1821759)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
