Issues with short excerpts: the_excerpt() still pulling from post
-
My understanding based on the Codex was that the_excerpt() pulls the data field “excerpt” (aka “manual excerpt”) from a post or a page if it exists, and failing that, will pull the first 55 words from the post/page and auto-generate the content, removing the HTML while it does so.
For some of my pages (pages, not posts… I had to enable it in 3.1 specifically in functions.php), I have short excerpts (2 words only) because I want extremely summarized information showing up as the excerpt.
The issue is — the content returned by the_excerpt() is the manual excerpt PLUS auto-generated content and the result of (manual + auto) is a 55-word block.
I don’t want WordPress concatenating the two – I want WordPress to honor the manual excerpt, regardless of size.
Can anyone shed any light on if this is intended behavior, if it changed, or if I should do anything other than look through the actual code?
- The topic ‘Issues with short excerpts: the_excerpt() still pulling from post’ is closed to new replies.