Take the 2-minute tour ×

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

1 Answer 1

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


