Jump to content
Sign in to follow this  
gayatriom

Limit Post excerpt on only category pages

Recommended Posts

gayatriom    0
gayatriom

Hi! How do I limit post excerpts on only the category pages and not the actual blog homepage with all the posts. I want the blog home page to have post excerpts of 300 words long and the category pages to have excerpts with only 55 words. Thanks !

Share this post


Link to post
Share on other sites
catrina    103
catrina
You'll need to use a filter for this: http://codex.wordpress.org/Function_Reference/the_excerpt#Control_Excerpt_Length_using_Filters. I'm not sure how to limit the change to a specific kind of page, however...

Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
gayatriom    0
gayatriom
Hmm. yeah. That's the big question. I'd like my homepage to have long posts and my category pages to have short excerpt lengths. Does anyone have any ideas?

Share this post


Link to post
Share on other sites
gayatriom    0
gayatriom
My work around : I sent homepage to full post settings. Then changes ALL excerpts back to 55 words.

Share this post


Link to post
Share on other sites
Rob    547
Rob
Sounds like a good plan!

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
gayatriom    0
gayatriom
wow. I can't even spell anymore :)!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×