Change WordPress Category / Archive Page From Full Content to Excerpt

//Change WordPress Category / Archive Page From Full Content to Excerpt

Change WordPress Category / Archive Page From Full Content to Excerpt

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:

By |2009-09-23T03:37:24+00:00June 4th, 2009|Programming & Code|5 Comments

About the Author:

Alvin Poh lives in Singapore, and is interested in marketing, techy stuff, and likes to just figure out how the two can work with each other. He can also be found on Google+.

5 Comments

  1. G Web June 9, 2009 at 12:15 pm - Reply

    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!

  2. Boy69 October 22, 2009 at 8:34 am - Reply

    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. ,

  3. Crazy70 October 23, 2009 at 7:18 am - Reply

    The greed rationality should really be shaken. ,

  4. Julius November 24, 2009 at 4:44 pm - Reply

    I found your blog on Google. I’ve bookmarked it and will watch out for your next blog post.

  5. ben January 11, 2010 at 1:10 am - Reply

    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! 🙂

Leave A Comment


*