Support » Themes and Templates » Only the latest post gets styled within the loop

  • For some reason, only the latest post gets styled within the container.

    <div class="container">
            <?php while ( have_posts() ) : the_post(); ?>
    
                        <?php the_title(); ?>
                        <?php the_content(); ?>
    </div>
             <?php endwhile; ?>

    Would anyone know why this is?

  • The topic ‘Only the latest post gets styled within the loop’ is closed to new replies.