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

Modal search form shortcode

…search restrictions as the regular searchform shortcode. Parameters that are not modal settings are passed to the search form. Search Search this site Search for: will restrict the search form to just products. Search Search this site Search for: will restrict the search form to posts, pages and news. Search…Relevanssi includes a modal search form shortcode that opens the search form in a dialog. The shortcode is relevanssi_modal_search. Search Search this site Search for: will display a “Search” button that opens the modal search form. Changing the labels Use the label parameter to change the text on the button:……Search this site Search for: will restrict the search form to categories 10, 14 and 17. Search Search this site Search for: will do a multisite search on blogs 1, 2 and 3. These parameters are added to the search form as hidden input fields. Adding dropdowns The modal shortcode…

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