{"issue":{"title":"Integrate text search into filters","user":{"login":"jesserosenfield","id":482945,"url":"https://api.github.com/users/jesserosenfield","avatar_url":"https://secure.gravatar.com/avatar/ea89afd6242491a6f37a3f769a67573d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ea89afd6242491a6f37a3f769a67573d"},"created_at":"2011-12-26T21:10:38Z","milestone":null,"state":"closed","updated_at":"2011-12-27T06:21:33Z","labels":[{"name":"question","url":"https://api.github.com/repos/scribu/wp-query-multiple-taxonomies/labels/question","color":"ededed"}],"id":2659948,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":"2011-12-26T21:29:04Z","html_url":"https://github.com/scribu/wp-query-multiple-taxonomies/issues/12","body":"When using the wordpress text search (via get_search_form) is it possible to merge the search query with the filters?\r\n\r\ni.e. /?s=mysearch&taxonomy=term1+term2\r\n\r\nThanks!","number":12,"url":"https://api.github.com/repos/scribu/wp-query-multiple-taxonomies/issues/12","comments":3,"assignee":null},"comment":{"user":{"login":"jesserosenfield","id":482945,"url":"https://api.github.com/users/jesserosenfield","avatar_url":"https://secure.gravatar.com/avatar/ea89afd6242491a6f37a3f769a67573d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"ea89afd6242491a6f37a3f769a67573d"},"created_at":"2011-12-27T06:21:33Z","updated_at":"2011-12-27T06:21:33Z","id":3279498,"body":"The following seems to work well:\r\n\r\nfunction my_qmt_base_url( $base ) {\r\n\t$search = $_GET['s'];\r\n    $additional_args = array(\r\n\t\t's' => $search\r\n    );\r\n\r\n    return add_query_arg( $additional_args, $base );\r\n}\r\nadd_filter( 'qmt_base_url', 'my_qmt_base_url' );","url":"https://api.github.com/repos/scribu/wp-query-multiple-taxonomies/issues/comments/3279498"},"action":"created"}