Forums

post repeating on single.php!? (11 posts)

  1. pickled
    Member
    Posted 4 years ago #

    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!

  2. MichaelH
    Volunteer
    Posted 4 years ago #

    Please paste the code that your single Template is using at http://wordpress.pastebin.ca/ and report the link back here.

  3. pickled
    Member
    Posted 4 years ago #

    this is my single.php code:

    http://wordpress.pastebin.ca/764647

    I'm going to post my index.php as well since its happening there as well.

  4. pickled
    Member
    Posted 4 years ago #

    here's index.php:

    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!

  5. MichaelH
    Volunteer
    Posted 4 years ago #

    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?

  6. pickled
    Member
    Posted 4 years ago #

    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...

  7. pickled
    Member
    Posted 4 years ago #

    related posts isn't it, that works properly. the problem is the *exact same* post is repeating.

  8. moshu
    Member
    Posted 4 years ago #

    Before arguing - did you try to test it without that piece of code?

  9. pickled
    Member
    Posted 4 years ago #

    nice community feel you create Moshu - who is arguing?

    and yes I did.

  10. MichaelH
    Volunteer
    Posted 4 years ago #

    Well I can't see anything wrong then. How about posting a screen shot somewhere showing the duplication?

  11. pickled
    Member
    Posted 4 years ago #

    i found the problem, the category visibilty plugin. thanks for trying to help.

Topic Closed

This topic has been closed to new replies.

About this Topic