Skip to main contentSkip to footer

Version 2.2.5 is a maintenance version that doesn’t introduce new features (except a couple of new filters) but fixes various problems. The biggest problem fixed is the case of multiplying post meta keys, which could happen when saving posts in Gutenberg. This new version will fix that: when a post is saved, all duplicate metadata generated by Gutenberg is removed.

Changes for both versions:

  • EXISTS and NOT EXISTS didn’t work for taxonomy terms in searches.
  • WPML post type handling has been improved. If post type allows fallback for default language, Relevanssi will support that.
  • Relevanssi now reminds you to set up automatic trimming for the logs. It’s a really good idea, otherwise the logs will become bloated, which will hurt search performance.
  • The Groups posts filter is only applied to public posts to avoid drafts being shown to people who shouldn’t see them.
  • The posts_per_page query variable didn’t work; it’s now added to the introduced query variables so that it works.
  • Relevanssi won’t log empty queries anymore.
  • The default tax query relation was switched from OR to AND to match the WP_Query default behaviour.
  • When used with WP 5.1, Relevanssi will now use wp_insert_site instead of the now-deprecated wpmu_new_blog.
  • Multisite blog creation is handled better in WP 5.1+.
  • Relevanssi now supports Restrict Content Pro permissions.

These changes only apply to Premium:

  • Gutenberg can cause duplicated postmeta fields for pinning and unpinning. Relevanssi will now remove the duplicate post meta when the post is saved.
  • New filter: relevanssi_user_indexing_args lets you adjust the arguments for the user indexing query, making easy for example to adjust which user roles are indexed.
  • API keys are handled better in single installations on multisites.
  • The pinning query is significantly faster.
  • In some cases, the related posts feature could show wrong number of posts. That’s now fixed.
  • WP CLI searches were disabled when Relevanssi is active; it should work now.
  • New filter: relevanssi_pdf_for_parent_query lets you adjust the MySQL query for fetching PDFs to index with the parent post.
  • New filter: relevanssi_pdf_for_parent_insert_data lets you manipulate the INSERT data for PDFs indexed with the parent post.
  • The Relevanssi metabox is now only shown for indexed post types.

Premium version 2.2.5 is already available through auto-update and from the Download page. The free 4.1.4 is not out yet as I write this, but will be available soon from the plugin repository.

Your account

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

Search

Popular Resources

WooCommerce: Aelia Prices by Country product visibility

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 ) {…

MemberPress Downloads add-on

The Downloads add-on for MemberPress adds downloadable files to MemberPress. These files are stored outside the Media Library, so by default Relevanssi attachment indexing has no access to them. However, Relevanssi offers filter hooks you can use to make Relevanssi index the MemberPress Downloads files. Adjust the query First, we……need to tell Relevanssi to look for mpdl-file posts instead of attachment posts using the relevanssi_get_attachment_posts_query filter hook. By default, Relevanssi looks for posts with the post type attachment, post status inherit and a suitable MIME type. These all need to be changed, because the Downloads posts have the post……to modify the name and path of the file sent to Relevanssi: add_filter( ‘relevanssi_get_attached_file’, ‘rlv_mpdl_file’, 10, 2 ); /** * Filters the name and path of the file. * * Gets the file name from the _mpdl_file_filename custom field of the download file * post and corrects the path, too….

Related Posts:

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