Ready to get started?Download WordPress


Relevanssi - A Better Search
[resolved] suggestion: length of the snippet (2 posts)

  1. Willem 2
    Posted 8 months ago #

    Hi Mikko,

    First of alle: Thanks for your nice plugin.

    I use the plugin on my blog http://www.column-razenberg.nl . 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?



  2. Mikko Saari
    Plugin Author

    Posted 8 months ago #

    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');


You must log in to post.

About this Plugin

About this Topic