Query string parameters from custom fields, inconsistent results
You need to build a proper meta_query. Your code will only work when you have one meta_key set, if you have more than 1, everything will be haywire. Also note, you should never ever use any unsanitized, non validated values from a $_GET variable (and for that matter any value coming from anywhere). It is … Read more