Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.