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 am using the_excerpt() method to display some wordings from the blog posts.

I have read the post from this link. http://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length

But my situation is different.

I am displaying some wordings from the posts in two places. In the first place I want to display 20 words and in the 2nd place I want to display 50 words.

So what will I do for this?

share|improve this question
up vote 0 down vote accepted

The top answer to this question handles dynamically altering the length of your excerpt using a custom excerpt function.

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.