Search terms not in snippet
-
I’m using version 3.3.5, and even though the highlighting in custom snippets is working, the snippet itself is simply based from the beginning of the page content…thus, if the term falls outside the word length of the snippet, it doesn’t show up.
I found that this was a known issue, and was solved by changing “usort” to “uasort” in lib/excerpts-highlights.php. But that was 10 months ago; and neither of those terms are found in that file now. Instead, it’s “uksort.” Whatever the reason, the problem is back: with “Create custom search result snippets” checked, “the_excerpt();” in my search.php file, and the snippet length set to 450, any search term more than 450 words into the page or post is not showing up on the search results page.
Is there another, more recent way around this?
- The topic ‘Search terms not in snippet’ is closed to new replies.