Wordpress | Tutorials

David Carr

Wordpress Twenty Thirteen theme - display post excerpt's

By default the Wordpress theme twenty thirteen shows the full post. When using the post types such as gallery,video,link etc that works great but if your using the standard post type and want to only show the post excerpts and not the full post that's not ideal.

To change this one way is to open content.php and find the following line:

<?php the_content( __( 'Continue reading <span class="meta-nav">?</span>', 'twentythirteen' ) ); ?>

Replace it with an if statement, to only show the content is on a single post otherwise show the except.

<?php if ( is_single() ) : ?>
    <?php the_content( __( 'Continue reading <span class="meta-nav">?</span>', 'twentythirteen' ) ); ?>
<?php else : ?>
       <?php the_excerpt(); ?>
<?php endif; ?>

Save and upload your done!

Domains are often purchased from multiple providers, keeping track of where a domain is and its DNS settings can be tricky. Domain Mapper solves this by listing all your domains in one place. View your DNS settings and receive reminders to renew your domains. Try it today.

Support my work by donating with PayPal.

Subscribe to my newsletter

Subscribe and get my books and product announcements.

© 2009 - 2021 DC Blog. All code MIT license. All rights reserved.