Continue reading Premium 2.4.2 / Free 4.3.3

Premium 2.4.2 / Free 4.3.3

Premium 2.4.2 and free 4.3.3 are maintenance updates that don’t add much new, but fix issues and add general improvements – the project to take Relevanssi to 100% testing coverage proceeds and continues to produce improvements to the code. New features New filter hook relevanssi_indexing_adjust can be used to stop Relevanssi from adjusting the number…

Read more Premium 2.4.2 / Free 4.3.3 0 Comment on Premium 2.4.2 / Free 4.3.3
Continue reading Natural-language date queries

Natural-language date queries

I just wanted to be able to type in a date on the search and for the search to come up with all the blog posts for that date. This is one of those tasks that sounds really simple, but is actually complicated. However, this question piqued my interest and turns out it isn’t that…

Read more Natural-language date queries 17 Comments on Natural-language date queries
Continue reading Premium 2.4.1 / Free 4.3.2

Premium 2.4.1 / Free 4.3.2

Premium 2.4.1 and free 4.3.2 are maintenance updates that don’t add much new, but fix issues and add general improvements – the project to take Relevanssi to 100% testing coverage proceeds and continues to produce improvements to the code. New features SEOPress support, posts marked “noindex” in SEOPress are no longer indexed by Relevanssi by…

Read more Premium 2.4.1 / Free 4.3.2 0 Comment on Premium 2.4.1 / Free 4.3.2
Continue reading Indexing image captions for the posts

Indexing image captions for the posts

…can index it. The image captions for the images in the Media library is stored in the post excerpt, so what needs to be done is to fetch the post excerpts and include them. The actual filter is straightforward: add_filter( ‘relevanssi_content_to_index’, ‘rlv_add_attachment_excerpts’, 10, 2 ); /** * Indexes attachment excerpts……If you want to index the image captions for the posts where the images are used, that’s easy if the captions appear on the page: Relevanssi will index those captions as well as the other text from the post. However, if the captions don’t appear on the page, you need……extra steps in order to read in the captions. The trick is to add an indexing filter on the relevanssi_content_to_index filter hook that will find all the attachments for a post, fetch the desired data out of the attachments and add that data to the parent post content so Relevanssi…

Read more Indexing image captions for the posts 0 Comment on Indexing image captions for the posts
Continue reading Premium 2.4.0 / Free 4.3.0

Premium 2.4.0 / Free 4.3.0

As suggested by the version numbering, versions 2.4.0 and 4.3.0 are major updates that change some of Relevanssi behaviour. Nothing should break, however, so updating from earlier versions is safe. New features Multi-phrase searches now respect AND and OR operators. If multiple phrases are included in an OR search, any posts with at least one…

Read more Premium 2.4.0 / Free 4.3.0 2 Comments on Premium 2.4.0 / Free 4.3.0
Continue reading Searching Bible verses

Searching Bible verses

A surprisingly common problem with Relevanssi is Bible verses. All that meaningful punctuation and single digits make exact matching of Bible verses really difficult for Relevanssi, and when searching for Bible verses, exact results are what matters – hitting something similar is generally not very helpful. There’s an easy solution, though: use phrases. Wrapping the verse…

Read more Searching Bible verses 1 Comment on Searching Bible verses
Continue reading Events Calendar: Remove past events from search

Events Calendar: Remove past events from search

If you have events on your site, you might not want to show the past events in the search. This is easy to do with Relevanssi. It can be done in two ways: either you block the past events in indexing or in searching. In most cases, the best solution is to do both. Blocking…

Read more Events Calendar: Remove past events from search 6 Comments on Events Calendar: Remove past events from search
Continue reading Premium 2.3.0 / Free 4.2.0

Premium 2.3.0 / Free 4.2.0

As suggested by the version numbering, versions 2.3.0 and 4.2.0 are major updates that change some of Relevanssi behaviour. Nothing should break, however, so updating from earlier versions is safe. There are lots of changes in this version, so now – and in future release notes – let’s look at……for the related posts. Premium only: New feature: Related posts WP CLI command has new parameters: just_objects activates the post object transients, post_type only generates the related posts for a particular post type. Premium only: New feature: You can now pin and unpin posts from the Admin search. Just do……no longer generated when posts are saved. There are cases where generating the templates in admin context cause problems. The templates will be generated the first time the post is opened. Bug fixes Major fix: Tax query processing has been completely refactored, eliminating all sorts of bugs, especially with various…

Read more Premium 2.3.0 / Free 4.2.0 3 Comments on Premium 2.3.0 / Free 4.2.0
Continue reading Premium 2.2.5 / Free 4.1.4

Premium 2.2.5 / Free 4.1.4

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…

Read more Premium 2.2.5 / Free 4.1.4 0 Comment on Premium 2.2.5 / Free 4.1.4