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?

1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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