Hi, yes it is possible with some custom programming, please see https://ww.wp.xz.cn/support/topic/drop-down-menu-in-location/
hi greg, i saw that thread. over there, you mentioned to change functions.php under theme.
should I change the file under theme/functions.php or under wp-contents/plugins/wpadverts/include/functions.php.
i got a bit confused. thanks
hi grey,
another question, on the listing page with search enabled, i would like to have an option in the search filed call ‘select location’, if user does not select any location, i need system to search all locations. how do I specify this in the code below:
$field[“options”] = array(
array(“value” => “”, “text” => “Select Location”),
//what value I should put here in order to search all locations?
array(“value” => “london”, “text” => “London”),
array(“value” => “toronto”, “text” => “Toronto”),
array(“value” => “oakville”, “text” => “Oakville”),
// more options here
);
1. you should change wp-content/themes/your-theme-name/functions.php or better yet, create a new WP plugin and paste the code inside it.
2. your code should be
$field["empty_option"] = 1;
$field["empty_option_text" = "Select Location";
$field["options"] = array(
array("value" => "london", "text" => "London"),
array("value" => "toronto", "text" => "Toronto"),
array("value" => "oakville", "text" => "Oakville"),
// more options here
);
https://wpadverts.com/documentation/forms-api/
thanks greg, it works!
for someone who may need this piece of code:
$field[“empty_option_text” = “Select Location”; should be $field[“empty_option_text”] = “Select Location”;