Continue reading Searching between dates

Searching between dates

If you want to have a search with a date range, that’s possible with Relevanssi. It takes a bit of handling, though, as Relevanssi expects date ranges in the date query format, and getting to that from search form can be tricky. Here’s the code you need for date range searches: add_filter( ‘relevanssi_modify_wp_query’, ‘rlv_date_between’ );…

Read more Searching between dates 0 Comment on Searching between dates
Continue reading Gmedia photo gallery tags

Gmedia photo gallery tags

Gmedia photo gallery gives a false impression of working with Relevanssi, as you can see the gmedia_tag taxonomy appear in the list of taxonomies: However, if you try to index those tags, you’ll soon notice Relevanssi isn’t actually indexing them. That’s because Gmedia gallery doesn’t use that taxonomy for the tags. The tags are actually…

Read more Gmedia photo gallery tags 0 Comment on Gmedia photo gallery tags
Continue reading Blocking pre and code tags

Blocking pre and code tags

If your posts have lots of programming code examples in <pre> and <code> tags, those might look pretty bad in the search results. A snippet of programming code isn’t usually a good excerpt, and if you use those tags purely for code snippets, they won’t likely contain significant search content, either. Fortunately it’s easy to…

Read more Blocking pre and code tags 0 Comment on Blocking pre and code tags
Continue reading Premium 2.1.7 / Free 4.0.11

Premium 2.1.7 / Free 4.0.11

It’s been a while from the previous Relevanssi release, and there’s plenty of fixes to all sorts of issues in this version. Nothing major, though, couple of unpleasant interface issues are fixed and there are several improvements in how highlighting works in excerpts. Relevanssi has been tested to be compatible with WordPress 4.9.8. Premium updates:…

Read more Premium 2.1.7 / Free 4.0.11 0 Comment on Premium 2.1.7 / Free 4.0.11
Continue reading Premium 2.1.6 / Free 4.0.10

Premium 2.1.6 / Free 4.0.10

Versions 2.1.6 and 4.0.10 are privacy updates, adding GDPR and privacy related features to support the new privacy tools in WordPress 4.9.6. The versions also include some bug fixes around places, and refactoring to make the code easier to understand, if you ever need to look under the hood. Here’s the full list of changes:…

Read more Premium 2.1.6 / Free 4.0.10 0 Comment on Premium 2.1.6 / Free 4.0.10
Continue reading WP Job Manager

WP Job Manager

Relevanssi doesn’t work with the WP Job Manager search. Solution is fortunately simple: you can just disable Relevanssi for the WP Job Manager page. To disable Relevanssi, add this to your theme functions.php: add_action( ‘get_job_listings_init’, ‘relevanssi_fix_for_wp_job_manager’ );   function relevanssi_fix_for_wp_job_manager( $args ){ remove_filter(’posts_request’, ‘relevanssi_prevent_default_request’); remove_filter(’the_posts’, ‘relevanssi_query’); }add_action( ‘get_job_listings_init’, ‘relevanssi_fix_for_wp_job_manager’ ); function relevanssi_fix_for_wp_job_manager( $args ){ remove_filter(‘posts_request’,…

Read more WP Job Manager 0 Comment on WP Job Manager
Continue reading BeTheme compatibility

BeTheme compatibility

BeTheme does the strangest, weirdest, and least productive things with search I’ve ever seen in a professional theme. It can automatically clear out your search term, which of course leads to Relevanssi searches failing. I have no idea what that is trying to achieve, but it makes searching very frustrating. Fortunately the fix is simple.…

Read more BeTheme compatibility 5 Comments on BeTheme compatibility