[Resolved] Loop Cancelled Out By Other Loop
In my header, I have a list of recent posts. This should be controlled by its own loop:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?>
However, it shows whatever the page content is meant to be displaying; author pages showing the author’s posts, pages showing the page title, posts showing the post title.
What should I change that code to to make sure it shows a list of the 6 latest posts?
- The topic ‘[Resolved] Loop Cancelled Out By Other Loop’ is closed to new replies.