PDA

View Full Version : How to collapse text post


LD
2009-12-08, 11:55 AM
I have a mainstream blog that is mostly text articles, and I want the first few lines to to display with a link that says "more" which opens the entire article. Is there a plug that does this?

Thanks!

HowlingWulf
2009-12-08, 01:08 PM
It's built into Wordpress. You want your template to call the_except() instead of the_content() when listing posts. Or use the_content() with <!--more--> comment.
http://codex.wordpress.org/Template_Tags/the_excerpt

cd34
2009-12-08, 01:10 PM
Do you use the wordpress editor? If so, there is a 'more' button in the editor which puts a break in and allows the post to continue on the second page.

Settings, Reading, For each article in a feed, show Full Text/Summary

this splits it at a hardcoded # of characters, I don't remember how many, but, it breaks on a character boundary and they back up a little so they don't split a word. It uses the excerpt if one is written, otherwise, splits the post.

LD
2009-12-08, 03:02 PM
Do you use the wordpress editor? If so, there is a 'more' button in the editor which puts a break in and allows the post to continue on the second page.

Settings, Reading, For each article in a feed, show Full Text/Summary



Perfect! I don't know how I missed something so simple..I'm used to working with pics and never had a need to do it.