Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] btx_excerpt

#13 2004-11-05 03:23:06

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

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

  1. Index
  2. » Archives
  3. » [archived] btx_excerpt

Board footer

Powered by FluxBB