WordPress.org

Ready to get started?Download WordPress

Forums

Same post is showing multiple times on a page (9 posts)

  1. DJD_79
    Member
    Posted 3 years ago #

    Hi,

    Since a couple of weeks ago I use a separate php file for my blog. All posts automatically are shown with a max of 15. At the bottem the famous previous and next links.

    But now a couple of posts are shown multiple times, while it actually is the same post and I haven't got a clue why this happens.

    Help?

    Gr. Dennis

  2. Samuel B
    moderator
    Posted 3 years ago #

  3. DJD_79
    Member
    Posted 3 years ago #

    Nice site, thx.
    I bookmarked it and will look into this. A lot of the same wrong use of code, not difficult to fix. But no answer for the double posts appearing on this page. Or am I wrong?

  4. Samuel B
    moderator
    Posted 3 years ago #

    I didn't wade through the errors.
    It could be a plugin - try deactivating them all and test
    if it works ok, re-activate one by one until you find offender

  5. Xephan
    Member
    Posted 3 years ago #

    What's your setting for this:
    Settings -> Reading -> Blog pages show at most

  6. DJD_79
    Member
    Posted 3 years ago #

    After a quick deactivating of all plug-ins, I saw a little piece of code that's used for my archive in combination with a plug-in.

    I gonna check it tonight, but I'm a great step in the right direction.
    Thanks!

  7. DJD_79
    Member
    Posted 3 years ago #

    @Xephan
    Thanks, but I can put every number I want in this box, the php file overules this value. But to avoid any problems, I've also set it to 15.

    Now creating an other way for my acrhive...

    Gr. Dennis

  8. krisjay
    Member
    Posted 3 years ago #

    @ DJD_79

    So what you are saying is you're using a custom loop, and within the custom loop your receiving duplicate posts?

  9. DJD_79
    Member
    Posted 3 years ago #

    Yes, you can say that. I explain:

    The blog catches all posts. It's okay, because the rest are pages.
    My archive was a manually (monthly) post that ~with the help of the plug-in inline posts~ created this part of the site.

    And there was the error, because this post (with all other posts in it) was also shown at my blog page. As a solution: I now have disabled my archive...

Topic Closed

This topic has been closed to new replies.

About this Topic