Posted: February 14, 2021 at 8:45 pm
I added the following code found here to the functions.php file to show the US as default country on oure reg form. But I also need the states list to default to the US states as well. Or, even better, to only show states that are applicable to the chosen country. Right now, it’s endless scrolling on the states list to get to the US to choose a state. Can you provide something to help us with this? add_action( |
|
Hi there, That’s actually exactly what happens if you manually select a Country, the other ‘states’ are filtered out of the state options. However, with the above code setting the value using Change:
To this:
Does it work then? |
|
That took care of it – thank you so much! |
|
You’re most welcome. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account