You can display posts on the Google Map using your advanced custom fields (ACF WordPress plugins). They make a map interactive and give the ability to place markers.
The key purpose of this feature is to arrange information according to its location. That’s why it will be especially useful for those who deal with different cities, countries, etc. For example, for a travel blogger who shares the experience on a website. He or she can insert a map with the visited places and display posts with information about them, impressions, feedback and recommendations on it. These details will be perfectly arranged with the help of advanced custom fields. It will be easy for readers to find the data they need about a country, city and object just zooming in and clicking on the marker. Titles with links will allow redirecting to the page with the post.
This is what you can do with the plugin:
- Create an unlimited number of posts and geolocate them.
- Assign categories to the data for a faster search.
- Add multiple custom tags and advanced custom fields to infowindows.
- Attach pictures to display posts in more creatively.
- Use different markers for different groups of objects.
- Customize infowindows applying any formatting and design style.
- Collect the latest posts below the map.
How it works
To display posts with advanced custom fields you need to create them first.
- Go to Posts section and type in the title, content, location data and assign a category in the proper fields.
- You can also add advanced custom fields. To do it just go to Infowindow Settings in Edit map section and insert placeholders in the field ‘Infowindow Message for Posts’. More information and a video tutorial are available here.
- To see this feature in action, click on any of the markers on the map. The plugin will display posts linked to the locations you choose.
There is a list of the posts below the map. If you are interested in a particular one and want to know its location, just click on its title and it will appear on the map.
If you want to find more and read the full article, click on the title and the plugin will redirect you to the appropriate page.
Try out the advanced custom fields feature with our example map: