Basic WordPress Loop

The most basic WordPress loop


    <?php if (have_posts()) { while (have_posts()) { the_post(); ?>

        <h1 class="post_title"><? the_title(); ?></h1>
        <div class="post_content"><? the_content(); ?></div>

    <?php } } ?>

Comments