Custom search form with empty parameters
That’s certainly something you must solve on the server side, only omitting the arguments in URL would cause errors when accessing the non-existent keys in the $_GET array. You should build your arguments array dynamically based on whether the values are set ot not. Example: $args = array(); foreach(array(‘s’, ‘country’, ‘year’) as $key) { // … Read more