the_excerpt() returns wrong number of words
-
I’m using the_excerpt() inside my loop on index.php
On posts without a defined excerpt, it should return the first 55 words of the content, and sometimes it does, but other times it will return as many as 68 words. I tried setting the limit to 20 words. This made the excerpts shorter but still not exactly 20 words, they range from 18-30.
is this a known bug in wordpress? is there a known way to get it to properly count words? I don’t want to write a custom excerpt for every post I make, but I do want the lengths to be more consistent.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘the_excerpt() returns wrong number of words’ is closed to new replies.