Commit d655d8d8 authored by Jakob Moser's avatar Jakob Moser
Browse files

Call the_post() in single.php to make all the_ functions work

parent 677ae6e7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@
get_header();
?>
<main>
    <?php the_post(); ?>
    <article>
        <header style="background-image:url('<?php if(has_post_thumbnail()) {
                // A header configured specifically for this post
@@ -35,8 +36,8 @@ get_header();
            <?php the_content(); ?>
        </div>
        <footer>
            <div class="post-meta-author"><?php the_author_meta('display_name', $post->post_author);?></div>
            <time><?php echo get_the_date();?></time>
            <div class="post-meta-author"><?php the_author_meta('display_name'); ?></div>
            <time><?php the_date(); ?></time>
        </footer>
    </article>
</main>