Continue reading Proximity sorting

Proximity sorting

Relevanssi Premium 2.16 added proximity sorting to search results. That means you can sort the search results by geographic location. Instead of having the most relevant matches first, you can have the nearest results first. There are many ways to use geolocation in WordPress. The way Relevanssi does this is flexible but requires some work.…

Read more Proximity sorting 0 Comment on Proximity sorting
Continue reading Redirecting email searches to the login page

Redirecting email searches to the login page

A client asked for a solution to redirect all searches for email addresses to the login page – perhaps someone is constantly using the search field when they’re actually looking for the login. This can be achieved with the Redirects tool, as it takes regular expressions. You can also add this to your site: This function…

Read more Redirecting email searches to the login page 0 Comment on Redirecting email searches to the login page
Continue reading MemberPress Downloads add-on

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…

Read more MemberPress Downloads add-on 0 Comment on MemberPress Downloads add-on
Continue reading Download Monitor: Index PDF content for parent page

Download Monitor: Index PDF content for parent page

Relevanssi can handle Download Monitor files without significant problems. If you want to use the “Index PDF contents for the parent page” option, there’s a problem, though. Download Monitor comes in between: the PDF post is attached to the Download Monitor dlm_download post and not the page where the [download] shortcode is. It’s easiest if…

Read more Download Monitor: Index PDF content for parent page 3 Comments on Download Monitor: Index PDF content for parent page
Continue reading ThemeCo

ThemeCo

ThemeCo themes use custom codes for dynamic content. Those are not usual shortcodes, and Relevanssi won’t expand them automatically. In order to expand the dynamic content from ThemeCo themes, you need to use these filters: The critical part is running these filters on an early enough priority for relevanssi_post_content: Relevanssi page builder shortcode cleanup runs…

Read more ThemeCo 0 Comment on ThemeCo
Continue reading Premium 2.15.3 / Free 4.13.3

Premium 2.15.3 / Free 4.13.3

These versions collect all the bug fixes and small improvements that I ran into during the summer. Next up is Premium 2.16, which will add bigger new features: at the moment I’m looking at developing proximity sorting (ie. show results that are nearest based on coordinates) and better search tracking. These will take some time…

Read more Premium 2.15.3 / Free 4.13.3 0 Comment on Premium 2.15.3 / Free 4.13.3
Continue reading CM Tooltip Glossary

CM Tooltip Glossary

A Relevanssi Premium customer bumped into a weird problem with CM Tooltip Glossary (and probably Elementor). Using Elementor, CM Tooltip Glossary and Relevanssi custom excerpts together caused the search results to break in an unusual way: each page of the search results showed the same results. I couldn’t figure out what’s causing this, but it…

Read more CM Tooltip Glossary 2 Comments on CM Tooltip Glossary
Continue reading WPML: Replacing posts with translations

WPML: Replacing posts with translations

Here’s a different approach to WPML searching. By default, you have two options. You can include posts in all languages in the results, or you can only use the current language. This solution checks for matches also in other languages. If Relevanssi finds any, this script then replaces them with the translated posts. You get…

Read more WPML: Replacing posts with translations 0 Comment on WPML: Replacing posts with translations