Posts not being displayed

  • Author
    Posts
  • #441525

    hansfordmc
    Member

    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; ?>

    <?php
    //Reset Query
    wp_reset_query();
    ?>

    #441636

    supportbot
    Member

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

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

    If you don’t understand the difference between WordPress.com and WordPress.org, 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.