<?php get_header(); ?>

<?php while (have_posts()): the_post(); ?>

    <article>
        <h2>
            <?php the_title(); ?>
        </h2>
        <hr>
        <div>
            <?php the_content(); ?>
        </div>
        <div class="meta">
            <?php the_date(); ?>
        </div>
    </article>

<?php endwhile; ?>

<?php get_footer(); ?>

<?php get_header(); ?>

<?php while (have_posts()): the_post(); ?>

    <article>
        <a href="<?php the_permalink(); ?>">
            <h2>
                <?php the_title(); ?>
            </h2>
        </a>
        <hr>
        <div>
            <?php the_content(); ?>
        </div>
        <div class="meta">
            <?php the_date(); ?>
        </div>
    </article>

<?php endwhile; ?>

<?php get_footer(); ?>

Add permalink to post titles
Add permalink to post titles
