[Resolved] Display markers on map (one of all not working)
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I am trying to display a marker on a map. All the items within the loop are displaying correclty on the map except for the first one in the loop using the following code...
Click on "Electic monkey" aka the first item and it does nothing on the map... All the other items display information on map once clicked. Can you help me understand whats going wrong?
Thank you for your response. Unfortunately this did not work. The first option/thumbnail/item in loop still does not display on map when you click on it.
I will require admin access details in order to check whats going wrong with your setup.
*** 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.
I'm not sure why you created two views, I can see you created one view to display the map and another view to display the posts. This is not good practice.
You will require only one view and to that view you should add the map and also list posts.
Here is the example I set with the following view:
- hidden link
As you can see I've added map shortcode outside the view's loop and the marker shortcode inside the loop and other post fields inside the loop.
You can check the view on the following test page: hidden link
If you click on the link "View on Map" I can see its working as expected and shows the correct result for all posts.
You should follow the above view example and make changes to your view and page output accordingly.