I would like to compile the address field for Google Maps from individual fields. Example:
Street + ZIP + city + country = toolset address field
How can I do that?
Hello. Thank you for contacting the Toolset support.
Do you mean that you have Street + ZIP + city + country setup as custom fields and on frontend based on those fields you want to display the map marker on the map based on the custom field values Street + ZIP + city + country that makes a singe address value.
-- if above is true:
I would like to know how you setup the map? Are you using blocks or classic views?
As i understand, you are trying to display the map on individual posts designed with blocks as well as you want to display map on view where you display multiple posts.
If above is true:
- You need to create a content template or view that displays the map in classic mode as using Map block do not support adding multiple dynamic field.
For example - you can add the map marker and adjust its address value using your multiple custom field shortcodes.
Where:
- You can adjust the value of correct map ID, and address attribute value with your original custom field names.
If you do not know how to do it, Please send me access details and problem URL where you want to display the map and I would be happy to assist you further.
*** 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 have set the next reply to private which means only you and I have access to it.
Thanks, the shortcode works.
However, I still have the problem in blocks and views.
Is it not possible to fill the field "wpcf-adress" with the values from the individual fields when saving a post?
Something like this: Set 'wpcf-adresse' = "field1 +" field2 "+" field3 "
I understood and incorporated the principle of the custom code. I have adjusted the field names and the ID. However, it doesn't work.
Do I have to add a shortcode to the form?
That is strange. Can you please share problem URL where I can see the form where you fill the information as well as tell me where exactly the code I shared you added.
In addition to that, I will require access details in order to check whats going wrong with your site:
*** 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 have set the next reply to private which means only you and I have access to it.