• pickled

    (@pickled)


    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

    (@michaelh)

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

    Thread Starter pickled

    (@pickled)

    this is my single.php code:

    https://wordpress.pastebin.ca/764647

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

    Thread Starter pickled

    (@pickled)

    here’s index.php:

    https://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

    (@michaelh)

    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

    (@pickled)

    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

    (@pickled)

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

    moshu

    (@moshu)

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

    Thread Starter pickled

    (@pickled)

    nice community feel you create Moshu – who is arguing?

    and yes I did.

    MichaelH

    (@michaelh)

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

    Thread Starter pickled

    (@pickled)

    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.