How to Display Post Excerpts in Twenty Thirteen WordPress theme

With the launch of WordPress 3.6 Twenty Thirteen is the default theme, its much responsive than the older one and feature rich with vibrant colors. By default in Twenty Thirteen displays full posts in home page, category, tag, author and archive pages except search results page.

twenty thirteen theme excerpts

By displaying excerpts in home page you can achieve a neat look on your blog and also it reduces the loading time by showing a short summary of your posts. This can be achieved by using a simple code in content.php.

Before making any changes on any theme take a backup of your theme so that you will not lose the theme if you make the changes in wrong way.

Edit Content.php

Open content.php from c-panel which is located at /wp-content/themes/twentythirteen/ or you can directly access this file from WordPress dashboard

Goto Appearence [icon name=”icon-angle-right”] Editor [icon name=”icon-angle-right”] content.php.

Find the below line

<?php if ( is_search() ) : // Only display Excerpts for Search ?>

Change it with below piece of code


<?php if ( is_search() || is_author() ||  is_tag() ||  is_archive()  || is_home () ) : ?>

Save  content.php and refresh your site. You should see posts displayed as excerpts. If you don’t want to show excerpts in author page  just remove  is_author() || from the above code.

Hope this tutorial helps you, if you have any doubts feel free to comment here.

Share your love

9 Comments

  1. Maaan! I dont know how to thank you for this but google needs to index you in the top for this issue, you’re my savior thanks alot. Big up!!

  2. Hi,
    I’ve found the content.php file in my 2013 theme. I know nothing about code and am probably seeing difficulties where there are none….. but can you clarify for me.

    In the above instructions do you mean delete this bit of code completely:

    and replace it with :

    Or do you mean insert the second piece of code to extend the statement as in:

    • Yes completely delete that first line of code and replace with second code.

      By default in 2013 theme only search page shows in excerpts so what we have done is add home page, tag page and archive page showing in excerpts.

      Hope you got it. If still you’ve any issues let me know I can help you.
      Thanks.

Leave a Reply

Your email address will not be published. Required fields are marked *