Normally, when you want to add a map to show your location, for example, way to your company, there are 2 popular methods: embedding Google Maps code directly to your website or use a plugin as guided in this article. However, if you have a listing page site, the kind of page that listing all the restaurants in a city, and you need to display maps for individual restaurants, both methods above are impossible.
On a listing or directory website, there is a list of businesses such as restaurants, coffee shops or bookstores. Each business has some information like title, introduction, review and very important – location. It’s a common demand that you want to display all the businesses on a single map, so users can view all of them at once. In this post, I’m going to show you how to do that in WordPress with Meta Box.