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 »', '')); ?>
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: