• Resolved kennethwatt

    (@kennethwatt)


    Hi guys
    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?
    Thanks
    K

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Loop Cancelled Out By Other Loop’ is closed to new replies.