Title: Duplicate posts?
Last modified: August 22, 2016

---

# Duplicate posts?

 *  Resolved [cmonkee20](https://wordpress.org/support/users/cmonkee20/)
 * (@cmonkee20)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-27/)
 * Hi,
    Excellent plugin. I placed the code <?php echo do_shortcode(‘[pt_view id
   =”xxxxxxxxx”]’); ?> in my index.php file right above the loop, <?php while ( 
   have_posts() ) : the_post() ?> , and it works nice, but… it also still displays
   my original post loop. (All my posts show below in a list after the grid layout).
   I hope I’m explaining this right.
 * Should I have deleted part of the loop? I’ve tried to comment sections out but
   then no posts show at all. It needs the whole loop to function.
 * [https://wordpress.org/plugins/content-views-query-and-display-post-page/](https://wordpress.org/plugins/content-views-query-and-display-post-page/)

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

 *  Plugin Author [Content Views](https://wordpress.org/support/users/pt-guy/)
 * (@pt-guy)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/duplicate-posts-27/#post-5352819)
 * Hi,
    It often contain both PHP & HTML code, so maybe you hadn’t comment in valid
   way. Backup that file, then delete all code from `<?php while ( have_posts() ):
   the_post() ?>` to something like `<?php endwhile;?>`
 * So all posts in original loop will be remove.
 * Best regards,
 *  Thread Starter [cmonkee20](https://wordpress.org/support/users/cmonkee20/)
 * (@cmonkee20)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/duplicate-posts-27/#post-5353059)
 * Thanks for the response. You are officially the first developer to ever respond
   to a question I’ve posted. They’ve always gotten lost in time. Thank you!!!
    
   So, I actually solved my own problem with just using CSS and no plugin to make
   columns for my posts.
 * But your plugin is lovely.
 * The only reason I had to deactivate the plugin was because it had a mysterious
   conflict with my native header (H1, H2…) styles. I spent a day trying to figure
   it out but unfortunately had to deactivate it to restore the headers.
 *  Plugin Author [Content Views](https://wordpress.org/support/users/pt-guy/)
 * (@pt-guy)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/duplicate-posts-27/#post-5353069)
 * Hi,
    Please open the **bootstrap.min.css** file in folder **assets\bootstrap\
   css**, replace it content by content from this [https://gist.githubusercontent.com/ptguy/279b6615605e7f0a9d74/raw/3c5d4221b1798c1f4b83583af08db6430d5bf55c/bootstrap-mifinied.css](https://gist.githubusercontent.com/ptguy/279b6615605e7f0a9d74/raw/3c5d4221b1798c1f4b83583af08db6430d5bf55c/bootstrap-mifinied.css)
 * and tell me if the problem is fixed.
 * Best regards,

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

The topic ‘Duplicate posts?’ is closed to new replies.

 * ![](https://ps.w.org/content-views-query-and-display-post-page/assets/icon.svg?
   rev=2932226)
 * [Content Views - Post Grid & Filter, Recent Posts, Category Posts ... (Shortcode, Gutenberg Blocks, and Widgets for Elementor)](https://wordpress.org/plugins/content-views-query-and-display-post-page/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-views-query-and-display-post-page/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-views-query-and-display-post-page/)
 * [Active Topics](https://wordpress.org/support/plugin/content-views-query-and-display-post-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-views-query-and-display-post-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-views-query-and-display-post-page/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Content Views](https://wordpress.org/support/users/pt-guy/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/duplicate-posts-27/#post-5353069)
 * Status: resolved