• Resolved Who_Dat

    (@who_dat)


    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?

    https://www.ads-software.com/plugins/relevanssi/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mikko Saari

    (@msaari)

    First of all, change the excerpt length setting from characters to words. Does that help?

    That’s an unusual problem, and probably something local to your site –?like you noticed, this was an existing bug, and was fixed a long time ago.

    Thread Starter Who_Dat

    (@who_dat)

    Changing the excerpt length to words fixed it. Thanks.

    Plugin Author Mikko Saari

    (@msaari)

    Good. Using words is much better anyway, it’s a lot more efficient that way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Search terms not in snippet’ is closed to new replies.