Support » Plugin: Relevanssi - A Better Search » suggestion: length of the snippet

  • Resolved Willem 2


    Hi Mikko,

    First of alle: Thanks for your nice plugin.

    I use the plugin on my blog . Most posts have a length of max 350 words. I wanted to show the whole post in the search results so I set the length of the snippet on 500 words. Now I can see the whole post but every post in the search results begins and ends with ‘…’ This suggests that the post is longer than what you see.

    Suggestion: Is it possible to show ‘…’ only when the tekst is longer than the length of the snippet?


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


    Thanks, I’ll make sure the … are not shown if the whole post is shown.

    For a quick fix, this should do the trick, added to your theme functions.php:

    add_filter('relevanssi_ellipsis', '__return_empty_string');

Viewing 1 replies (of 1 total)
  • The topic ‘suggestion: length of the snippet’ is closed to new replies.