WordPress: show excerpts in the category or tag view [SOLVED]

“I just want to only display the excerpt instead of the entire text of the post in the category / tag archives, how to achieve this?”. This is a common question of wordpress users.

Well, the fix is really simple. Go to your working theme directory and look for content.php (or sometimes archive.php). You should see something like:

<?php if (is_search()) the_excerpt(); else the_content(__('Read the rest of this entry &raquo;', '')); ?>

Or it might just be:

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

Just change that to include the cases of displaying category archive (or tag archive), as in:

<?php if ( is_category() || is_tag() || is_date() || is_search() ) : // Only display Excerpts for Tag Archive, Date Archive, and Search ?>

Upload the file to your server and you’re ready to go :)

Related posts:

  1. WordPress Yoast SEO + wp_comfy theme + Category titles
  2. WordPress: remove /category
  3. wordpress: Ordenar archive.php por fecha con query_posts
  4. WordPress: where am I? is it the frontpage? [solved]
  5. WordPress in a subdirectory, urls like it was in root directory

Leave a Reply

Paypal donate

Please help me keep this blog up by donating.

Por favor, ayúdame a continuar con el blog donando.