Skip to main contentSkip to footer

Premium 1.14.4

Relevanssi Premium 1.14.4 includes a bug fix in multisite searching, fixes a small glitch in highlighting and includes a new filter.

  • Fixed a small glitch that could happen if a highlighted term is next to a starting square bracket.
  • Bug fixes in the multisite searching: post type weights work now, and relevancy scores are properly noted.
  • Ensured PHP7 and WP 4.6 compatibility.
  • New filter: relevanssi_30days can be used to adjust the 30 day logs to a different number of days.

The new version can be downloaded from the Download page or through the auto update feature.

Your account

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

Search

Popular Resources

Disabling Relevanssi
If you need to disable Relevanssi, for example for a particular template, all you need to do is to unhook…
Excluding protected posts

A site I’m working with has a handful of “protected” posts (password required to view). For various reasons, we don’t want to show these in search results. While there is no excerpt shown, I’d prefer for people to not even know they exist. Relevanssi sees protected posts as public posts……2 ); function rlv_search_exclude_protected( $allow, $post_id ) { $post = get_post( $post_id ); if ( ! empty( $post->post_password ) ) { $allow = false; if ( is_user_logged_in() ) { $allow = true; } } return $allow; } Now protected posts are not shown to searchers who are not logged in….

Moving the admin search page

Jules Colle came up with a method of moving the Relevanssi admin search page from under the Dashboard heading to the top level of the admin menu. add_action( ‘admin_menu’, function () { remove_submenu_page( ‘index.php’, ‘relevanssi_admin_search’ ); add_menu_page( ‘Search all content’, ‘Search all content’, ‘manage_options’, ‘relevanssi_admin_search’, ‘relevanssi_admin_search_page’, ‘dashicons-search‘, 2 ); },……introduced. This filter hook lets you add new admin page hooks where Relevanssi javascript is used, so we can introduce our new admin search page: add_filter( ‘relevanssi_acceptable_hooks’, function( $hooks ) { $hooks[] = ‘toplevel_page_relevanssi_admin_search’; return $hooks; } ); Now we have a nice, functioning admin search that is not hidden:……99 ); This function adds an admin_menu action that first uses remove_submenu_page() to remove the existing admin search function and then add_menu_page() to add it again on the top menu level. This works well except for one thing. The Relevanssi admin javascript is added only to specific pages, and the…

Related Posts:

Currently there are no related posts available.

Comment Section:

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