• Using this code on my page:

    <div id="news">
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>
    
    </div>

    I get an endless stream of posts on the page. Can someone explain what I’ve done wrong please? PHP isn’t my language of choice so I can’t see what I’ve messed up with!

  • The topic ‘Endless Loop of posts on page’ is closed to new replies.