Support » Plugin: Advance WP Query Search Filter » Search String not Working

  • Resolved in omnia paratus


    Hi there.

    I’m having a problem with the search itself.
    I have two dropdown fields that get their info from two taxonomies, and a imput text field.

    for ex.: in the text field i write: “Chocolate” in the dropdown filters I select “London” (one of the taxonomies) knowing that “chocolate” shouldn’t appear on “London”. It gives me the result the same (but belonging to another taxonomy/filter option) instead of saying that there isn’t any results.

    Every time I write something in the text string, somehow the plugin ignores the taxonomies filter. How can I fix this?

    Thank you so much in advance

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author TC.K


    This is the natural of the plugin to ignore taxonomy and meta field when the text field is in use.

    hummm…. and how do I do the opposite? can this plugin do it? if not, what is the best one around?

    I really need to have the text string working with the filters.

    Plugin Author TC.K


    Well, if you really need this, then you’ll have to edit the plugin.

    Do you have any idea of the code that I need to add?

    Plugin Author TC.K


    open plugin folder/includes/process.php

    look for line 145 to line 146

    $tax_query = isset($get_tax) && empty($keyword) ? 	$get_tax : null;
    $meta_query = isset($get_meta) && empty($keyword) ? $get_meta : null;

    change to

    $tax_query = isset($get_tax)  ? $get_tax : null;
    $meta_query = isset($get_meta) ? $get_meta : null;

    I never test this, but it should work.

    Wow! it worked like a charm! thank you so much for your help. :-))))


    P.S.: keep up with the good work

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Search String not Working’ is closed to new replies.