Title: Duplicate Posts
Last modified: April 26, 2018

---

# Duplicate Posts

 *  [girlbot](https://wordpress.org/support/users/injira/)
 * (@injira)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/duplicate-posts-58/)
 * I saw that [@hemant29](https://wordpress.org/support/users/hemant29/) issue was
   closed and not resolved. The issue is not with the plugin but the custom query
   in your theme. Be sure that your query has the pagination setup correctly.
 * $paged = max(1, get_query_var(‘paged’));
    $my_query = new WP_Query(‘category_name
   =something&posts_per_page=1&paged=’.$paged);
 * More info here [https://stackoverflow.com/questions/15937436/wordpress-pagination-showing-same-results-for-each-page?rq=1](https://stackoverflow.com/questions/15937436/wordpress-pagination-showing-same-results-for-each-page?rq=1)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-posts-58%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Sjoerd Blom](https://wordpress.org/support/users/vertizio/)
 * (@vertizio)
 * [8 years, 1 month ago](https://wordpress.org/support/topic/duplicate-posts-58/#post-10220529)
 * I was just going through this as well. The solution is in the [Codex](https://codex.wordpress.org/Pagination#Static_Front_Page)
   too:
 *     ```
       if ( get_query_var( 'paged' ) ) { $paged = get_query_var( 'paged' ); }
       elseif ( get_query_var( 'page' ) ) { $paged = get_query_var( 'page' ); }
       else { $paged = 1; }
       ```
   
 * On a few static pages ‘page’ is used on other pages ‘paged’. The above line will
   solve it.
 *  [silp1054](https://wordpress.org/support/users/silp1054/)
 * (@silp1054)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/duplicate-posts-58/#post-10480511)
 * hello, I have this problem I duplicate the post and I do not know how to fix 
   it, you can help me thank you very much.
    The code they wrote as a solution does
   not know where to put it.
 *  [ionz149](https://wordpress.org/support/users/ionz149/)
 * (@ionz149)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/duplicate-posts-58/#post-10816587)
 * I have tried implementing a few different iterations of that pagination code 
   in various manners and no matter what I do I get duplicate posts.

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

The topic ‘Duplicate Posts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/easy-load-more.svg)
 * [Easy Load More](https://wordpress.org/plugins/easy-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/easy-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/easy-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-load-more/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [ionz149](https://wordpress.org/support/users/ionz149/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/duplicate-posts-58/#post-10816587)
 * Status: not a support question