1 blockedmind Jul 19, 2006 12:05
3 blockedmind Jul 19, 2006 15:41
b2evolution 1.6-Alpha
4 blueyed Jul 19, 2006 23:38
The cut-word-limit only gets respected/used for XML. I've found this out sometime and documented it in the code, but never actually fixed it. It's also not that easy, because it should not mess tags up (remove a closing P tag for example).
A solution for you might be to get the whole content, use strip_tags() on it, explode it by whitespace (e.g. with preg_split('~\s+~', $text, -1, PREG_SPLIT_NO_EMPTY) and then use the 20 first entries/words of the resulting array.
Always give the info of what version of b2evo you are running.