Support » Fixing WordPress » $post missing?

  • Okay, I posted earlier tonight and I figured out how to get one post to show. But as I make new posts, it’s not updated.
    Ideally I would like to have 6 posts displayed on the index.php. I can’t get it. When I put the code:
    <?php if ($posts) : foreach ($posts as $post) : start_wp(); ?>
    into my page, it seems that the $post isn’t found. To get the single post to show up i put simple start_wp(), without the if/else statement. But I without the if/else I can’t get more posts to show up on the page.
    Any suggestions?

Viewing 1 replies (of 1 total)
  • Mark (podz)


    Support Maven

    It looks like you have removed too much wp code.
    The post title should be a permalink, it isn’t. Without that being a permalink, you cannot have archives, you’ll have problems with trackback and pinging too.
    You need everything inside The Loop – all of it.

Viewing 1 replies (of 1 total)
  • The topic ‘$post missing?’ is closed to new replies.