Support Forum

Welcome Guest 

Show/Hide Header

Welcome Guest, posting in this forum requires registration.

NOTE : Due to personal issue, this Ultimate WP Query Search Filter Plugin is no longer under development. Thanks for the support over the years.

Anyone that come across this page that want to find a realible saerch plugin, here are the list of potential replacements.

Plugin author will no longer giving support here, however you can still asking for help from other users here.
Pages: [1]
Author Topic: Default search template doesnt work
Posts: 1
Post Default search template doesnt work
on: March 4, 2016, 16:11

i tried using default search template but it doesnt give me results. then i checked global WP_query and this is what i found

[meta_query] => Array ( [relation] => [1] => Array ( [key] => my_duration [value] => get_all_cmf_except_me [compare] => != ) [2] => Array ( [key] => my_price [value] => Array ( [0] => 1-500 [1] => 500-1000 [2] => 1000-2000 ) [compare] => IN )

1. Relation can only be 'AND' or "OR" right?
and here we have "[relation] => [1]".
2. Can values in array be like this "1-500" and such?

Are these the problems causing error?
what should i do?

Posts: 530
Post Re: Default search template doesnt work
on: March 4, 2016, 18:36

1. It seem you didn't set AND or OR in the form setting page for the meta query. But it will default to AND though.
2. Yes, you can use such 1-500 values, but if you want to do this, normally you has to use 'BETWEEN' compare operator.

New Add-On Plugins for Ultimate WP Query Search Filter has been released! Check it out now.

Buy Me A Beer! Thanks

Pages: [1]