Continue reading Year filter from the search query

Year filter from the search query

A good question was asked in the post Natural-language date queries: Is it possible to extend this so that I can simply add a the year in the search and only results from that year would show? The answer is yes! Add these functions to your site: The code consists of two functions. The first…

Read more Year filter from the search query 0 Comment on Year filter from the search query
Continue reading WooCommerce: Aelia Prices by Country product visibility

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: This function uses the relevanssi_post_ok filter hook to control which posts are included in the search and…

Read more WooCommerce: Aelia Prices by Country product visibility 0 Comment on WooCommerce: Aelia Prices by Country product visibility
Continue reading PublishPress Revisions: duplicate posts

PublishPress Revisions: duplicate posts

PublishPress Revisions causes duplicates to appear in Relevanssi search results when a revision is approved. When the revision is created, Relevanssi indexes it because it has the same post type as the original post with the post status draft. Relevanssi indexes drafts because people may want to search for them in the admin search. This is…

Read more PublishPress Revisions: duplicate posts 0 Comment on PublishPress Revisions: duplicate posts
Continue reading Korean postpositions

Korean postpositions

Korean has postpositions, which complicate things for Relevanssi. Fortunately, it’s easy to clean up the most common postpositions from the words. Add this function to your site: After you’ve added this function, rebuild the index. You also need to adjust the minimum word length to 2, as many Korean words are only two characters long.…

Read more Korean postpositions 0 Comment on Korean postpositions
Continue reading Premium 2.25 / Free 4.22 release notes

Premium 2.25 / Free 4.22 release notes

This is a security update. A security hole was found in Relevanssi that allowed anybody to view site drafts. Versions 2.25 and 4.22 patch this hole. 2.25.2 / 4.22.2 2.25.1 / 4.22.1 2.25.0 / 4.22.0 You can find the new versions from the automatic updates or the Downloads page.

Read more Premium 2.25 / Free 4.22 release notes 0 Comment on Premium 2.25 / Free 4.22 release notes
Continue reading Indexing attachments from File blocks

Indexing attachments from File blocks

The Relevanssi attachment indexing assumes the files are connected to the posts using the WordPress attachment mechanism. What if you don’t use that but instead add the files to the pages using the File block in the block editor? That’s not a problem, but it requires some extra code. Add this function to your site…

Read more Indexing attachments from File blocks 0 Comment on Indexing attachments from File blocks
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