How to Show Post Excerpts on Category Page?

Most of the themes including Free and Premium now already come with Post Excerpts display on Category/Archives Page. It’s good to show Post Excerpts on Category Page if its not already set.

How to Show Post Excerpts on Category Page?

There’s nothing much you have to do except replacing a line of code from archives.php of your theme file.I’ll not beat about the bush or explain more about the codes in Archives.php here. Here’s a simple code to get things done.

Let’s do this

  • Open Archives.php and find this line of code in it.
1
<?php the_content(__(‘Continue Reading…’));?>
  • This calls the content of the post and adds “Continue Reading…” at the end. Now for showing excerpts. You can replace this whole line with
1
<?php the_excerpt() ?>
I hope you find this simple tip handy.. Leave a comment if you found this useful or you come across any problems.

We will be happy to hear your thoughts

Leave a reply

WP PANDA