Forums

[resolved] Weird repeating post bug... (7 posts)

  1. incluye
    Member
    Posted 2 years ago #

    As far as I can tell, my code is fine, but what's happening is WordPress is repeating my first post - title and date only - until it reaches the maximum execution time limit.

    Completely stumped.

    Here's the code: http://pastebin.com/m7a687bbf

  2. Mark / t31os
    Moderator
    Posted 2 years ago #

    What theme are you using, and which file is that from?

  3. incluye
    Member
    Posted 2 years ago #

    I'm currently coding a theme. That's the index.php file.

  4. Mark / t31os
    Moderator
    Posted 2 years ago #

    I have to be honest and i say i've no idea.

    I've copied pieces of your code for testing and it behaves as normal.

  5. Xamataca
    Member
    Posted 2 years ago #

    here:<?php if(have_posts()) : while(have_posts()) : the_post; ?> should be the_post();? (Don't know if this is the problem tho...)

  6. Mark / t31os
    Moderator
    Posted 2 years ago #

    lol, yes that could well be, well spotted, i missed that (i never copied the loop part)...

    Well spotted mate! :)

  7. incluye
    Member
    Posted 2 years ago #

    A thousand thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic