Continue reading Premium 2.24 / Free 4.21

Premium 2.24 / Free 4.21

These versions are maintenance releases, with some new filter hooks that allow more customization and some requested debugging tools. The rest of the updates are small bug fixes in fairly uncommon situations. 2.24.4 2.24.3 2.24.2 / 4.21.2 2.24.1 / 4.21.1 2.24.0 / 4.21.0 You can get the new version from the automatic updates. The Premium…

Read more Premium 2.24 / Free 4.21 0 Comment on Premium 2.24 / Free 4.21
Continue reading Premium 2.23 / Free 4.20

Premium 2.23 / Free 4.20

This version has one major new feature. Previously when Relevanssi used custom fields for excerpts, the custom field content was added to the end of the post content, and there was no way to tell which custom field the content was coming from. Now, you can use custom field specific excerpts which use individual custom…

Read more Premium 2.23 / Free 4.20 0 Comment on Premium 2.23 / Free 4.20
Continue reading WooCommerce: Make Relevanssi notice stock changes

WooCommerce: Make Relevanssi notice stock changes

In some cases, WooCommerce product stock level changes don’t affect the search immediately. If the search is set up to exclude out-of-stock items, a product that sells out may still be included in the search until the next reindexing. This happens because changes in the stock status don’t trigger a WordPress post update that Relevanssi…

Read more WooCommerce: Make Relevanssi notice stock changes 0 Comment on WooCommerce: Make Relevanssi notice stock changes
Continue reading Premium 2.21 / Free 4.18.4

Premium 2.21 / Free 4.18.4

Relevanssi Premium gets a bigger version number bump than the free version this time. The 4.18.4 release of the free plugin is a minor update, while 2.21.0 adds a significant new feature. You can now add weights for pinned words to control the order of the pinned posts. This new feature is documented on the…

Read more Premium 2.21 / Free 4.18.4 0 Comment on Premium 2.21 / Free 4.18.4
Continue reading Only return exact title matches if possible

Only return exact title matches if possible

We have posts with titles like “A perfect match”. If a user searches for this exact title, only this post should show up in the results. Otherwise, the search should run as default. There are several approaches to this, but the best is relevanssi_hits_filter. This function goes through all the posts, checks if the post…

Read more Only return exact title matches if possible 0 Comment on Only return exact title matches if possible
Continue reading FileBird: Filtering attachments by folder

FileBird: Filtering attachments by folder

FileBird is one of many WordPress plugins that provide more control over the attachments in the Media Library. You can use the FileBird folders in Relevanssi searches to filter attachments based on their folder. Here’s a simple function you can add to your site: Once you add this, you can use the folder parameter to…

Read more FileBird: Filtering attachments by folder 0 Comment on FileBird: Filtering attachments by folder
Continue reading Polylang: Bilingual search

Polylang: Bilingual search

By default, Relevanssi indexes the different language versions of the posts separately. If your site is in French and English, searching for the English text will find the English posts and searching for the French text will find the French posts. But what if you want the French search terms to find the English post…

Read more Polylang: Bilingual search 8 Comments on Polylang: Bilingual search
Continue reading ACF: Indexing files from File fields

ACF: Indexing files from File fields

Relevanssi can index attachment contents from files linked to posts with ACF File fields. This does not happen automatically but requires some extra code. The code required depends on which return value you use for your ACF File fields. If you use “File ID”, the code looks like this: For “File Array”, the code looks…

Read more ACF: Indexing files from File fields 1 Comment on ACF: Indexing files from File fields