WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I show excerpts of all posts at this site. Which works fine.

However, I would like show content for posts of a specific category, while keeping all others showing excerpts.

Is it possible, without a plugin? With a filter in functions.php, etc.?

Working with 3.1.4, twentyten.

share|improve this question
up vote 1 down vote accepted

You can use the in_category function to test if the current post in the loop is in the specific category you want to display full content for.

For example

if ( in_category( 'my_category') ) :
else :

For more information on the in_category function see the WordPress codex at: http://codex.wordpress.org/Function_Reference/in_category

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.