Posts not being displayed

  • Author
  • #441525


    I created a custom template and have it on a localhost server. The wordpress dashboard and other features seem to be operating fine as I can create posts and they are saved. I have the post loop in the index.php file, but the posts aren’t being displayed when I click on the “View Site” link. Just to make certain that the loop was working, I put an echo in the loop and it is working as expected. Below is the loop code. Thanks

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php echo “post”; endwhile; endif; ?>

    //Reset Query



    You did not specify a blog address or reason for posting when you created this topic.

    This support forum is for blogs hosted at If your question is about a self-hosted WordPress blog then you’ll find help at the forums.

    If you don’t understand the difference between and, you may find this information helpful.

    If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.

    This is an automated message.

The topic ‘Posts not being displayed’ is closed to new replies.