Simplest Way to Show Only Excerpts Instead of Full Posts in WordPress Blog
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:
thank you for post, really help me…
This is the way I follow in my blog. I actually love this option.