In my Balance theme blog I’d like to limit the length of the post show at the top to the first two paragraphs, instead of showing the whole post.
So far I’ve figured out how to limit the length to, for instance, 200 characters by changing the code in home.php to:
‘feature_content_limit’ => 200,
but that’s an unsatifactory way of doing it as it cuts sentences in the middle. Does anyone know how to limit post length by paragraph?
There used to be a plug-in that would allow you to display excerpts by paragraph, but it is no longer supported. The only way I know to do it is on a per-post basis by using the <!–more–> tag within the body of the post to cut off your content where you want.
Thanks, Susan. That should do the trick.
The topic ‘Home page top post excerpt – Balance theme’ is closed to new replies.
Are you a blogger, web designer, developer, or website owner looking to generate more income?
Promote products for the largest and fastest growing online website platform as part of our affiliate program.