I am creating an events website where I want to display a map on each event page with a marker for that particular event.
I am using the Pro version of the WP Google Map plugin to generate maps based on data inputted into Advanced Custom Fields. The map outputs the data perfectly, however it places markers for all event locations entered into the map custom field.
Is there a way to make the map only display a marker for the corresponding event page that it is loaded onto?
Thanks in advance.
Please paste following code into your functions.php of the currently activated theme.
You will get code on this link https://gist.github.com/wpflippercode/b02e04871fe823d1b71bb04993cc153e
I hope it helps you.