Jump to content


Photo
- - - - -

How to generate an Excerpt without breaking up a word


  • Please log in to reply
2 replies to this topic

#1 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 05 September 2011 - 02:20 PM

Some of you have asked how to generate an excerpt of a particular length, which often results in a word that's been cut in the middle. This would provide a solution.

Use this code:

Please Login or Register to see this Hidden Content


It can be implemented as a shortcode, when placing excerpts in particular places.

#2 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 06 September 2011 - 01:44 AM

Thanks for this!

#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 06 September 2011 - 04:50 AM

No prob.