Forums

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

  1. incluye
    Member
    Posted 4 months 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. t31os_
    Member
    Posted 4 months ago #

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

  3. incluye
    Member
    Posted 4 months ago #

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

  4. t31os_
    Member
    Posted 4 months 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 4 months 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. t31os_
    Member
    Posted 4 months 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 4 months ago #

    A thousand thanks.

Reply

You must log in to post.

About this Topic