Environment: WordPress with Toolset (Types, Blocks, Maps). Map block with a marker whose source is "Dynamic source" → Post source: Current post → Source: field group → Field: Address (Toolset Maps address field).
Problem: On one post of the CPT, the map shows correctly in the admin (editor), but on the frontend the map is centered at 0,0 (Gulf of Guinea) with no marker.
Details:
Other posts of the same CPT work correctly.
If I enter a different address on this same post, the frontend works.
The address is "Carrer Vinyes d'en Mandri, 82, 08394 Sant Vicenç de Montalt, Barcelona, España".
Latitude/longitude saved in the field are correct (41.5719429, 2.4998147).
The address is output as d’en in the frontend HTML (wptexturize), so I suspect the apostrophe is the trigger.
Entering the address with a typographic apostrophe or editing the meta value did not fix it.
Frontend:
hidden link
Content Template:
hidden link
Hello,
Thank you for the details. I checked your site and found the cause.
When you pick an address that has an apostrophe, Toolset Maps saves it in its address cache with an extra backslash (d\'en). The frontend looks for the address without the backslash, finds no coordinates and shows no marker.
This is an issue in Toolset Maps and not in your setup. I reported it to our developers and I will update you here when I have news.
Until it is fixed, please follow the steps below:
1. Edit the "Racó 19" post.
2. Set the address field to exactly: Carrer Vinyes d'en Mandri, 82, Sant Vicenç de Montalt, España
3. Save the post and clear the WP Rocket cache.
Thanks.