Skip to main contentSkip to footer

The Chamber Dashboard Business Directory plugin has a business directory search that’s not compatible with Relevanssi. To disable Relevanssi in those searches, add this to your theme functions.php:

add_filter( 'relevanssi_prevent_default_request', 'rlv_allow_chamber_search', 10, 2 );
function rlv_allow_chamber_search( $prevent, $query ) {
    if ( isset( $_GET['searchtext'] ) ) {
        $prevent = false;
    }
    return $prevent;
}

This will make the business directory search work again. However, I would recommend just using Relevanssi to search the business directory as well – that’s possible, and you don’t need to use the Business Directory default search.

Your account

Not logged in. Log in to see your license details.

Search

Popular Resources

Different fuzzy search setting on different searches

On one of our sites we have 2 search boxes, one where you can do a normal search and the other where you can search for employees or departments. The employees/department search is done by using the relevanssi_do_query() function. Can we use fuzzy matching on the normal search and disable…

ACF: Indexing relationship content
If your posts include content from related posts using the Advanced Custom Fields relationship functionality, Relevanssi doesn’t index that content…
Search is ignoring accents
In general, searches ignore accents, which is generally a good idea: for example in French, the difference between e and…

Related Posts:

Comment Section:

Leave a Reply

Your email address will not be published. Required fields are marked *

Fill out this field
Fill out this field
Please enter a valid email address.
You need to agree with the terms to proceed