WordPress.org

Ready to get started?Download WordPress

Forums

Only the latest post gets styled within the loop (1 post)

  1. tmyie
    Member
    Posted 1 year ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic