Change WordPress Category / Archive Page From Full Content to Excerpt

C

This problem was annoying me because WordPress themes may show the full content of every single post when you visit a category page or archives page, and I didn’t want that. I poked around the WordPress API and it turns out that you can just use a text editor (or the built in WordPress theem Editor) and search for function the_content() and change it to the_excerpt(). Simple!

These changes can be applied to the following files:

  • index.php
  • category.php
  • archive.php
  • archives.php
  • search.php

Similar Posts:

About the author

Alvin Poh

I've over 17 years of entrepreneurship experience, having built a tech company to be the top in the country, which was subsequently acquired for an 8-figure sum. As CEO, I led the company through robust growth to 150 employees across 4 countries. After the acquisition, I embraced minimalism, sold off my personal possessions, and started living around the world.

Read more about my story here.

5 comments

  • This is exactly the reason why I feel that WordPress and its associated community is an absolutely indispensable part of the current world of the internet. This kind of enthusiast community, enabling people to gain access to the internet world was unthought of a couple of years ago. Long live WordPress, and the awesome people that are the heartbeat of it!

  • Again, a recurring question and a common one in most interview :can u pls send me some sample answers a fresher requires 4 hsbc call centre job on my mailI am sick and tired of all this media around me. ,

  • I usually don’t post on Blogs but ya forced me to, great info.. excellent! … I’ll add a backlink and bookmark your site.

    I’m Out! 🙂

By Alvin Poh

About Author

I've over 17 years of entrepreneurship experience, having built a tech company to be the top in the country, which was subsequently acquired for an 8-figure sum. As CEO, I led the company through robust growth to 150 employees across 4 countries. After the acquisition, I embraced minimalism, sold off my personal possessions, and started living around the world.

Read more about my story here.