- This topic has 3 replies, 2 voices, and was last updated 4 months, 2 weeks ago by .
I have read something about bind_if_empty idea in this forum but it doesn't work for me.
Sometimes, OSM doesn't have the value "city" and I must use "town" value instead. Same happens with "suburb"/"city-district"/"neighborhood" values.
I would like to use the "town" value when "city" value is empty.
This is my no-luck approach:
[ 'name' => __( 'City', 'miav2' ), 'id' => $prefix . 'city2', 'type' => 'text', 'address_field' => 'address', 'binding' => 'city', 'bind_if_empty' => 'town', ],
- You must be logged in to reply to this topic.