[Resolved] Exclude and re-order specific address information in view
This thread is resolved. Here is a description of the problem and solution.
Problem:
How to format address field in specific format
Solution:
You should have to split your string using comma and then build your required address string in specific format using the custom shortcode where you should pass the address field value as argument to shortcode.
Hello. Thank you for contacting the Toolset support.
Well - this depends what field type you used to store your address value and how it's stored inside the database.
There is no way to exclude the country name from your address until we process your string in such way to delete the address value and format it according to your need.
You should have to split your string using comma and then build your required string. But I can guide you more once I can check your setup how the string is stored and where exactly you want to display it is said format.
Could you please send me problem URL where you want to display the address.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
That's great! Thanks 🙂
When I sent you the login details, I also added some extra information, which I don't see in our conversation... The client I'm building this site for will be expanding abroad shortly, so actually the country name will be relevant after all 🙂
Whats changes need to be made to make it look like this:
Mickey Mousestraat 15
Almere, Nederland