WordPress.org

Forums

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

  1. Willem 2
    Member
    Posted 10 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?

    Willem

    https://wordpress.org/plugins/relevanssi/

  2. Mikko Saari
    Member
    Plugin Author

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

Reply

You must log in to post.

About this Plugin

  • Relevanssi - A Better Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic