Title: Duplicate Posts
Last modified: December 11, 2017

---

# Duplicate Posts

 *  [joshdshapiro](https://wordpress.org/support/users/joshdshapiro/)
 * (@joshdshapiro)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/duplicate-posts-56/)
 * Hello,
 * Just downloaded and loaded Ajax plug-in. Really cool!
 * 1. I am hoping to stop the duplicate posts from loading in Ajax with other posts
   on the front page. I inserted the following CSS code (found in support forum)
   into the default template but duplicate posts still load:
 * <?php
    if($do_not_duplicate){ $post__not_in = implode(“,”, $do_not_duplicate);}
   echo do_shortcode(‘[ajax_load_more post__not_in=”‘.$post__not_in.'”]’); ?>
 * Please let me know what I did wrong.
 * 2. Also, how do I make the load more posts have the same look as the other ones
   on the front page?
 * Thank so much for your help!
 * Best,
    Josh
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fduplicate-posts-56%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/duplicate-posts-56/#post-9772539)
 * Hi [@joshdshapiro](https://wordpress.org/support/users/joshdshapiro/),
    Thanks
   for trying the plugin.
 * 1. Well, this wont work unless you actually build an array of post IDs to exclude.
   Notice [in the example](https://connekthq.com/plugins/ajax-load-more/docs/code-samples/exclude-posts/)
   how the $do_not_duplicate array is built using a previous query?
 * The easiest way to avoid duplicates of posts loaded before Ajax Load More is 
   to use the `offset` parameter or the [Preloaded](https://connekthq.com/plugins/ajax-load-more/add-ons/preloaded/)
   Add-on.
 * 2. The easiest way to do this is to locate the query or include file used on 
   your blog and then duplicate the code in your [Repeater Template](https://connekthq.com/plugins/ajax-load-more/docs/repeater-templates/).
 * Hope this helps.

Viewing 1 replies (of 1 total)

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

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

 * [duplicate posts](https://wordpress.org/support/topic-tag/duplicate-posts/)

 * 1 reply
 * 2 participants
 * Last reply from: [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/duplicate-posts-56/#post-9772539)
 * Status: not resolved