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

Use the_content shorthand

This has the added extra benefit that it also takes care of handling passwort protected pages
parent 9f0ce832
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,7 +16,7 @@ get_header();
        <h2><?php bloginfo('description');?></h2>
    </header>
    <section class="ticker">
        <?php echo apply_filters('the_content', $post->post_content); ?>
        <?php the_content(); ?>
    </section>
    <section class="news">
        <?php $recent_posts = wp_get_recent_posts(array('numberposts'=>4)); ?>
+1 −7
Original line number Diff line number Diff line
@@ -32,13 +32,7 @@ get_header();
            <h1><?php the_title(); ?></h1>
        </header>
        <div class="content">
            <?php
                if ( !post_password_required() ) {
                    echo apply_filters('the_content', $post->post_content);
                } else {
                    echo get_the_password_form();
                }
            ?>
            <?php the_content(); ?>
        </div>
        <footer></footer>
    </article>
+1 −7
Original line number Diff line number Diff line
@@ -34,13 +34,7 @@ get_header();
            <h1><?php the_title(); ?></h1>
        </header>
        <div class="content">
            <?php
                if ( !post_password_required() ) {
                    echo apply_filters('the_content', $post->post_content);
                } else {
                    echo get_the_password_form();
                }
            ?>
            <?php the_content(); ?>
        </div>
        <footer>
            <div class="post-meta-author"><?php the_author_meta('display_name');?></div>