Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] btx_excerpt
Doug – I got bothered when the plugin cut the post to a certain amount of words and forgot to put in a </p>
, so I added a line:
<code>
} else {
$words = (!empty($words)) ? $words : 20;
$excerpt = implode(’ ‘, array_slice(explode(’ ‘, $thisarticle[‘body’]), 0, $words));
$excerpt = $excerpt.”</p>”;
</code>
Offline