WordPress Twenty Thirteen Show Excerpt

Search results already show excerpts (summary of the posts). If you want to show excerpts in tag pages, author pages,homepage and category pages. to show complete post only on individual post pages.You can change the content.php of wordpress twenty thirteen theme.

The content.php page  of theme is generally located at  /wp-content/themes/twentythirteen/
You can directly edit the page from there  or from wordpress dashboard >> appearance >> editor >> select  content.php

You need to change this default code to

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

to

<?php if ( is_search() || is_author() ||  is_tag() ||  is_archive()  || is_home () ) : // display excerpts for search, author,tags, archive,  and, most definitely home ?>

You can remove the particular page in code if you don’t need them there. This code will make WordPress Twenty Thirteen Show Excerpt.

email

23 thoughts on “WordPress Twenty Thirteen Show Excerpt

  1. Thanks for the comment !
    It should be content.php instead of index.php that contains < ?php if(if_search)):.. is located at your theme folder wordpress root folder/wp-content/themes/twentythirteen/content.php I've edited post as well

    1. This is the Twenty Thirteen index.php file… can you point out what I need to change to have the excerpt show up everywhere? Also, I would like to customize the link of the excerpt. THANKS SO MUCH!!!!


    1. For easy editing you can edit the theme from wordpress dashboard > Appearance > Editor

      At right side you can see content.php

      You need to replace this block of code :
      < ?php if ( is_search() ) : // Only display Excerpts for Search ?>

      by


      < ?php if ( is_search() || is_author() || is_tag || is_archive() || is_home () ) : // display excerpts for search, author,tags, archive, and, most definitely home ?>

  2. Do i put this code in the index.php file to show excerpts? Or where? I do not see the (is_search) in the index.php by default. Thanks for your help!

    1. Depp,it should be should be content.php instead of index.php. I have already edited the post.
      Thanks for pointing out mistake

    1. Thank you Nickel for pointing out the mistake in my post. I have already edited the post it should be content.php instead of index.php

      check your content of main index templete
      location is
      wordpress dashboard > Appearance > Editor
      At right side you can see content.php

    1. Thank you Jaracely for pointing out the mistake in my post.I have edited the post it should be content.php instead of index.php

  3. this is great thank! but when i do this, there is no little ‘read more’ link at th eend of the exceprt which i think would be helpful. how do i get this?

  4. Hi Anwesh,

    that was very helpful, thank you! It seems that you are having the same problem I did with the sidebar in this theme. Some of the links are dissapearing under the bar. This theme was designed to use the footer as the main widget zone but some of us do have a preference for a sidebar which seems like an after thought by the programmers IMHO.

    1. You can add thumbnail using thumbnail for excerpt plugin .Though it is not .updated since long time but it still works.

  5. Hello, I have a related problem. In my content.php the default code is set for excerpt on search results, but my search results are not excerpting. We have the Genesis and Twenty Thirteen themes and child theme. I didn’t build it, but I am trying to learn/figure out how to fix it. I also can’t figure out how to remove the meta (date, author) and “filed in” info from the search results. I have tried deleting from content.php, but that didn’t work. Thanks.

Leave a Reply to anwesh.tiwari Cancel reply

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