Tagged: excerpt category
I would like to have the category pages of my blog display an excerpt of each post rather than the full post. However, I want to keep the index page of the blog as it is (full posts displayed).
Is this possible?
In archive.php replace:
get_template_part( 'includes/loop', 'index');
get_template_part( 'includes/loop', 'archive');
Then make a copy of includes/loop-index.php and call it loop-archive.php. Open up loop-archive.php and replace:
the_content(__('Read more →','avia_framework'));
echo '<a class="more-link" href="'.get_permalink().'">Read more →</a>';
The topic ‘Excerpt rather than full post for category pages’ is closed to new replies.