Viewing 2 replies - 1 through 2 (of 2 total)
  • we have the second problem as well. I tried the relevanssi_search_ok filter, but it still filters the search =/

    Plugin Author Mikko Saari

    (@msaari)

    The Relevanssi way to do this would be to remove all those WP_Queries from the search results template and instead do one search that finds all products, resources and pages, and then just show them in that order.

    So you’ll have to choose: either don’t use Relevanssi, or rewrite the search results template to work the way Relevanssi does it. With the level of customization on your site, I’m pretty sure it’s easiest if you just don’t use Relevanssi.

    You can try this, though. Before the first WP_Query in the search results template, add this:

    remove_filter('posts_request', 'relevanssi_prevent_default_request'); 
    remove_filter('the_posts', 'relevanssi_query', 99);

    This will disable Relevanssi. That’ll probably make those queries work; they just won’t be powered by Relevanssi. It won’t solve the problems with your Resources page, though.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relavanssi breaks other searches on site’ is closed to new replies.