I am trying to: get maps to work on the custom post single and listing pages of two of my custom post types
Link to a page where the issue can be seen:
I expected to see: the map marker and markers on the relevant pages
Instead, I got: the Republic of Congo showing as default target and no map marker present
you will need to register as a member to be able to see the maps in action
I have attached two images to show u
Hi Michael,
Thank you for contacting us and I'll be happy to assist.
I tried to view your website, but it was behind a coming soon page.
If the same map's shortcode is showing the location markup correctly for some posts and not for the others, it would be a good idea to check if the relevant location field contains the proper address information for those posts.
In case the issue still persists after checking/updating the location field, you're welcome to share temporary admin login details, in reply to this message.
Your next reply will be private so that only you and our support team will have access to it.
Important note: Please make a complete backup copy of your website, before sharing the access details.
regards,
Waqar
In connection to all of the above, when I am logged in as admin and proceed to edit the custom post type the map showing in the dashboard area on the CPT is correct, which tells me that the address field is correct, it is just not transferring to the front end and displaying as it did in the back end.
Hi Michael,
Thanks for writing back and for sharing the access details.
The slug used for the "Your Business Postal Address" field for the "Photographers" is "your-business-postal-address".
( ref: hidden link )
But in the "Photo-Video Single Page View" content template for the Photographers, "wpcf-address" field slug is being used for the marker.
hidden link
( screenshot: hidden link )
Please update the slug to "wpcf-your-business-postal-address" and the marker will show at the correct location on the map.
regards,
Waqar
Waqar, thank you I feel like a numpty that I did not pick up on that grrrrrrrrrrr