Closed netsparkle closed 2 years ago
Thanks for letting me know! In what context (meta or options page)?
I pushed another update yesterday, can you check it again? The other fields should also be saved and they actually do here in my dev environment. If you do a var dump for the $_POST, you should have something like this in your $_POST for the location field: array (size=7) 'lat' => string '51.939978' (length=9) 'lng' => string '4.4795829' (length=9) 'street' => string 'Bergweg' (length=7) 'number' => string '' (length=0) 'postal_code' => string '' (length=0) 'city' => string 'Rotterdam' (length=9) 'country' => string 'Netherlands' (length=11)
on the meta page, thanks! I will see if the update works for me
I updated it and got it to work, but it doesn't pull 'State'
Thanks for letting me know! In what context (meta or options page)?
I pushed another update yesterday, can you check it again? The other fields should also be saved and they actually do here in my dev environment. If you do a var dump for the $_POST, you should have something like this in your $_POST for the location field: array (size=7) 'lat' => string '51.939978' (length=9) 'lng' => string '4.4795829' (length=9) 'street' => string 'Bergweg' (length=7) 'number' => string '' (length=0) 'postal_code' => string '' (length=0) 'city' => string 'Rotterdam' (length=9) 'country' => string 'Netherlands' (length=11)
Is there a way to get 'state'?
I see, I need to update the code as state is not outputted here. I'll push an update.
Update is pushed for supporting state. Could you check it?
it works, should use component.short_name for state i think so you get the abbreviation instead of the whole name
It seems like only lat + long get sent to $_POST, I am working on how to solve this but wonder if you have any ideas?