Title: post repeating on single.php!?
Last modified: August 18, 2016

---

# post repeating on single.php!?

 *  [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/)
 * Hi,
 * This must be easy but I cant see the solution, I changed something while editing
   single, index, or archive.php and now when looking at a post it repeats over 
   and over on single.php…any ideas how to fix that?
 * TIA!

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

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649311)
 * Please paste the code that your single Template is using at [http://wordpress.pastebin.ca/](http://wordpress.pastebin.ca/)
   and report the link back here.
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649380)
 * this is my single.php code:
 * [http://wordpress.pastebin.ca/764647](http://wordpress.pastebin.ca/764647)
 * I’m going to post my index.php as well since its happening there as well.
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649381)
 * here’s index.php:
 * [http://wordpress.pastebin.ca/764648](http://wordpress.pastebin.ca/764648)
 * so the problem now is that posts repeat on index.php and single.php, but archive.
   php is fine.
 * thanks for your help!
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649385)
 * I am going to guess it’s this causing the posts to appear twice:
    `<?php related_posts();?
   >`
 * but I don’t see that in the index.php.
 * Got a link to see the actual site?
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649392)
 * no I can’t let you see it, it’s on a secure test server.
 * why would you suspect <?php related_posts(); ?> ?
 * I figured I got the loop out of wack somehow, but I have no idea how…
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649393)
 * related posts isn’t it, that works properly. the problem is the *exact same* 
   post is repeating.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649394)
 * Before arguing – did you try to test it without that piece of code?
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649410)
 * nice community feel you create Moshu – who is arguing?
 * and yes I did.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649413)
 * Well I can’t see anything wrong then. How about posting a screen shot somewhere
   showing the duplication?
 *  Thread Starter [pickled](https://wordpress.org/support/users/pickled/)
 * (@pickled)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649485)
 * i found the problem, the category visibilty plugin. thanks for trying to help.

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

The topic ‘post repeating on single.php!?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [pickled](https://wordpress.org/support/users/pickled/)
 * Last activity: [18 years, 6 months ago](https://wordpress.org/support/topic/post-repeating-on-singlephp/#post-649485)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
