The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Willem 2
    Posted 2 years 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 2 years 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');

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic