Yourself
After using WordPress to build a business website, it's common to include contact information and a company map on the site. This article shares two methods for inserting a Baidu Map into a website.
Method 1: Baidu Map Generator
1. Open the Baidu Map Generator webpage.
Map Address2. Fill in the necessary information on the left, locate the position you want to display on the map, and click the 'Get Code' button.

3. Copy the generated map code and save it as an HTML file, for example, baidumap.html.

4. Upload the baidumap.html file to your website's root directory or another folder. 5. Where you need to call the Baidu Map on the webpage, insert the following code to reference it.
Method 2: Using a Plugin API to Generate
The display effect is as follows:

1. Install the WordPress Baidu Map Plugin
Join the group to downloadGroup 774633089 Shared Files > WordPress Plugins > CJ11.baidumap.zip 2. In the
Baidu Maps Open PlatformCreate an application, as shown in the figure below:

3. Modify the built-in AK information in the Plugin with the one you applied for.

4. When publishing a Post, click the map button to insert a map, as shown below:

When inserting a Baidu Map, you also need to fill in latitude and longitude coordinates. You can
get them from here. Okay, the above are two methods for inserting Baidu Map location information into a website. If you have any questions, feel free to join the group for discussion.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.