Continue reading Showing only one recurring event

Showing only one recurring event

Some event calendar plugins do recurring events by creating many posts. That’s fine, until those cloned posts fill up your search results. This function, added to your theme functions.php, will only show one of each post with the same title, and will take the one with the first date. The date is checked from _EventStartDate…

Read more Showing only one recurring event 0 Comment on Showing only one recurring event
Continue reading Indexing product variation SKUs for main product

Indexing product variation SKUs for main product

Relevanssi can index product and product variation SKUs for WooCommerce products: just add _sku to list of custom fields to index. However, if you want to find the main product when searching for the product variation SKU, you need some extra code. Just add this function to the theme functions.php and rebuild the index: add_filter(’relevanssi_content_to_index’,…

Read more Indexing product variation SKUs for main product 0 Comment on Indexing product variation SKUs for main product
Continue reading Scroll result page to the search term

Scroll result page to the search term

Relevanssi can highlight search terms on the posts (which is a feature I generally don’t recommend, as it may lead to some compatibility issues). But how about scrolling the page to show the location where the search results are? That is also possible. It requires a bit of JavaScript on the post page. This script…

Read more Scroll result page to the search term 3 Comments on Scroll result page to the search term
Continue reading Premium 1.15.4 / Free 3.5.12

Premium 1.15.4 / Free 3.5.12

Both Relevanssi Premium and the free version have been updated. Both version include a update to the taxonomy query handling. Previous versions couldn’t handle nested tax_queries properly. That works now. There were also some issues with the post type exclusion: it didn’t work quite as expected. Premium version also includes a significant performance improvement on…

Read more Premium 1.15.4 / Free 3.5.12 0 Comment on Premium 1.15.4 / Free 3.5.12
Continue reading Premium 1.15.3.1 / Free 3.5.11.1

Premium 1.15.3.1 / Free 3.5.11.1

Relevanssi Premium 1.15.3.1 and free 3.5.11.1 are minor bug fix releases. They fix a notice about an undefined variable in 1.15.3 or 3.5.11 – nothing to worry about, but if you’ve got debug mode enabled, you’d see an error message in most searches. This version also adds two new filters that let you disable one-letter searches,…

Read more Premium 1.15.3.1 / Free 3.5.11.1 0 Comment on Premium 1.15.3.1 / Free 3.5.11.1
Continue reading Private custom fields

Private custom fields

I use private custom fields. I want to index them in the administration but not on the public site. How to do ? Initially this seems impossible to do with Relevanssi, but it’s possible. Doing this requires Relevanssi Premium. The free version doesn’t know which custom field matches the search term, it just knows some custom…

Read more Private custom fields 0 Comment on Private custom fields
Continue reading Premium 1.15.3

Premium 1.15.3

Relevanssi Premium 1.15.3 fixes many bugs and improves Relevanssi behaviour in many cases. Indexing taxonomy terms is further improved, as is highlighting HTML tags. A fairly big change is how Relevanssi handles taxonomy terms and user profiles when a post type parameter is used. Previously setting a post type parameter didn’t exclude taxonomy terms and…

Read more Premium 1.15.3 0 Comment on Premium 1.15.3
Continue reading Indexing only some visible shortcodes

Indexing only some visible shortcodes

I am running another plugin, which uses custom fields that are visible, but I don’t want to include them in my search results. Is there a way to allow Relevanssi to continue index visible custom fields, but exclude few specific ones that I do not want indexed? Yes: the list of custom fields is passed through the…

Read more Indexing only some visible shortcodes 1 Comment on Indexing only some visible shortcodes
Continue reading Conflict with User Access Manager

Conflict with User Access Manager

Relevanssi has a conflict with User Access Manager plugin. Both plugins attach to the same `the_posts` filter hook with the same priority, and if UAM runs after Relevanssi, it may cause some issues, like missing excerpts or even broken search results pages. The solution seems simple, however: at least in the one case I’ve run…

Read more Conflict with User Access Manager 0 Comment on Conflict with User Access Manager