Skip to main contentSkip to footer

Version 2.1.4 fixes couple of small bugs – a small regression, a problem sanitizing user inputs, issues with highlighting – and adds one new feature. There’s now a “Pin this post for all keywords” checkbox in the Relevanssi post controls box. That checkbox does pretty much what it says: it pins the post for all keywords that are in the post. Whenever a search is made where the post is found, it will be pinned to the top of the results.

Another significant fix is related to AND searches. There have been cases where a multi-word searches return different results depending on the word order: with certain orders, some posts haven’t been found. That has happened when there’s a throttle involved and some words are very rare. Putting the rare words first has returned results, but with the rare words last nothing is found.

Now Relevanssi will always sort the search terms in the order of rarity, no matter what order the user used. That should guarantee all posts are found as necessary.

  • Fixed cases where Relevanssi added an ellipsis even if the excerpt was from the start of the post.
  • Highlighting now works with numeric search strings.
  • Improved highlighting for accented words. Thanks to Paul Ryan.
  • A surplus comma at the end of post exclusion setting won’t break the search anymore.
  • Fixed instructions for adjusting the throttle limit.
  • New “Pin this post for all keywords” feature.
  • Improved results for AND searches.

The new version is available with the automatic updates, or from the Download page.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

WooCommerce: Aelia Prices by Country product visibility

…$post = get_post( $post_id ); $post_type = $post->post_type; $product_id = $post->ID; if ( ‘product‘ === $post_type && function_exists( ‘wc_get_product’ ) ) { // Get the product object. $product = wc_get_product( $product_id ); // Check if the product is purchasable. if ( $product && ! $product->is_purchasable() ) { $post_ok = false;……Check if the product is purchasable. if ( $product && ! $product->is_purchasable() ) { $post_ok = false; } } return $post_ok; } This function uses the relevanssi_post_ok filter hook to control which posts are included in the search and the $product->is_purchasable() function to see if the product can be shown….Aelia has a Prices by Country for WooCommerce plugin, which can adjust prices based on customer country and hide products unavailable in a specific country. Jason James shared a function that makes Relevanssi hide unavailable products in search: add_filter( ‘relevanssi_post_ok’, ‘relevanssi_aelia_compatibility’, 10, 2 ); function relevanssi_aelia_compatibility( $post_ok, $post_id ) {…

User Access Manager

Relevanssi has a conflict with User Access Manager plugin. Both plugins attach to the same `the_posts` filter hook with the same priority, and if UAM runs after Relevanssi, it may cause some issues, like missing excerpts or even broken search results pages. The solution seems simple, however: at least in…

Related Posts:

Currently there are no related posts available.

Comment Section:

2 Comments. Leave new

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed