Simplest Way to Show Only Excerpts Instead of Full Posts in Wordpress Blog

August 23rd, 2009 Leave a comment Go to comments

I have found many bloggers asking how to show only the excerpts instead of full posts in Wordpress. So I thought why don’t I write a post on it. You can find some plugin to do that. But I personally believe in using as less Wordpress plugins as possible, especially for simple tasks. And for this case, you just have to change a line of code in theme file.

Go to Theme Editor (Appearance> Editor) from your Wordpress admin dashboard. Now think you want to show only the post excerpts in search results page. So you will go to the respective file (in this case search.php)  & search for the phrase

the_content()

When you find it, just replace “content” with “excerpt“. That’s all. The code phrase should look like

the_excerpt()

Save the changes. Check your blog’s search results page. It should only show excerpts instead of full blog posts. Likewise you can change it in main page or archives pages too.

Related posts:

  1. How to Show HTML Code in Wordpress Blog Post
  2. How to Show HTML Code in Blogger Blog Post
  3. Automate Your Twitter Feeds With Blog Posts
Categories: Wordpress Tags:
  1. August 27th, 2009 at 16:23 | #1

    thank you for post, really help me…

  2. August 27th, 2009 at 17:23 | #2

    This is the way I follow in my blog. I actually love this option.

  1. No trackbacks yet.