Hi there,
Can you try adding the code snippet mentioned in this doc? https://lpacwp.com/docs/how-to-change-places-autocomplete-selected-api-fields/
function sl_cc_change_autocomplete_administration_level($mappings){
$mappings['stateCounty'] = "administrative_area_level_2";
return $mappings;
}
add_filter('places_address_components_mappings','sl_cc_change_autocomplete_administration_level',20);
Thread Starter
taohi
(@taohi)
Excellent… that works perfect… Thank you so much.
I am facing a similar issue where the “State and County” field disappears when clicking the “Detect Current Location” button.
Please help me.
https://arabellabodensee.live-website.com/
I have tried the previous solution, but it did not work.
@mazenwrqlg Please create a separate thread for your issue so that we may better assist you.
Thread Starter
taohi
(@taohi)
Only to avoid confusion, my issue is not resolved, I forgot to delete the cookies. I’m still having the same issue.
Thread Starter
taohi
(@taohi)
I figured out, that State and County does show up, after refreshing the page. it does not resolve the issue, but it may help to find the issue.