Title: Map in Each Post – Add interactive maps to every post
Author: Matteo Enna
Published: <strong>2024 年 7 月 11 日</strong>
Last modified: 2025 年 12 月 3 日

---

搜索插件

![](https://ps.w.org/map-in-each-post/assets/banner-772x250.jpg?rev=3353320)

![](https://ps.w.org/map-in-each-post/assets/icon-256x256.jpg?rev=3294898)

# Map in Each Post – Add interactive maps to every post

 作者：[Matteo Enna](https://profiles.wordpress.org/matteoenna/)

[下载](https://downloads.wordpress.org/plugin/map-in-each-post.3.4.1.zip)

 * [详情](https://cn.wordpress.org/plugins/map-in-each-post/#description)
 * [评价](https://cn.wordpress.org/plugins/map-in-each-post/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/map-in-each-post/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/map-in-each-post/#developers)

 [支持](https://wordpress.org/support/plugin/map-in-each-post/)

## 描述

Map in Each Post allows you to easily add a map to your WordPress posts using shortcodes
and a built-in form. You can customize each map with different points for each post.
This plugin is ideal for travel blogs, location-based content, and any website that
needs custom maps per post. Additionally, you can select which post types will have
the map functionality enabled.

**Try it on a free mock site: [click here](https://tastewp.org/plugins/map-in-each-post/)**

#### Features

 * Add a custom map to each post using a simple shortcode.
 * Customize each map with different points via a form in the post editor.
 * Select the post types where the map functionality should be enabled.
 * Easy to use and configure.
 * Compatible with the latest version of WordPress.

#### Usage

To use this plugin, simply add the following shortcode to your post to display a
map with multiple points:

    ```
    [mapInEachPost]
    ```

Or by specifying the center point and zoom:

    ```
    [mapInEachPost zoom="3" lat="45.4399961" lon="10.9719328"]
    ```

Then, use the form that appears in the post editor to input the latitude and longitude
coordinates for the points you want to add to the map.

This will generate a map with points in New York City and Los Angeles.

To display a single point on the map, use the following shortcode:

    ```
    [mapInEachPostPoint lat="39.8736" lon="8.7479" zoom="12" title="Point in Sardinia"]
    ```

 * `lat`: Latitude of the point (required)
 * `lon`: Longitude of the point (required)
 * `zoom`: Zoom level for the map (optional, default: 8)
 * `title`: Title of the point (optional, default: empty)
 * `link`: A URL to associate with the point (optional)
 * `desc`: A description for the point (optional)

For example, to display a point with additional information:

    ```
    [mapInEachPostPoint lat="39.8736" lon="8.7479" zoom="12" title="Point in Sardinia" link="https://example.com" desc="Description of the Point in Sardinia"]
    ```

This will generate a map centered on the given latitude and longitude, with the 
point titled “Point in Sardinia” and a link to “https://example.com”.

### Third Party Services

This plugin relies on the Leaflet service to display maps. Leaflet is an open-source
JavaScript library for mobile-friendly interactive maps. By using this plugin, you
agree to the terms of use and privacy policies of Leaflet.

 * Service: [Leaflet](https://leafletjs.com/)
 * License: [BSD-2-Clause license](https://github.com/Leaflet/Leaflet?tab=BSD-2-Clause-1-ov-file#readme)

You can find the source code and contribute to the project on GitHub:[Map in Each Post on GitHub](https://github.com/Ellusu/map-in-each-post)

## 屏幕截图

 * [[
 * [[
 * [[
 * [[
 * [[

## 安装

 1. Upload the plugin files to the `/wp-content/plugins/map-in-each-post` directory,
    or install the plugin through the WordPress plugins screen directly.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Use the shortcode `[map_in_post]` in your posts to display a map and input points
    via the form in the post editor.
 4. Go to the plugin settings page to select the post types where the map functionality
    should be enabled.

## 常见问题

### How do I add a map to my post?

Simply use the shortcode `[mapInEachPost]` in the post where you want the map to
appear, and input the points using the form that appears in the post editor.

### Can I customize the points on the map for each post?

Yes, you can customize the points for each map by entering the latitude and longitude
coordinates in the form provided in the post editor.

### How do I select the post types where the map functionality should be enabled?

Go to the plugin settings page and select the post types where you want the map 
functionality to be enabled.

### What map service does this plugin use?

The plugin uses Leaflet, an open-source JavaScript library for mobile-friendly interactive
maps, to display the maps.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Map in Each Post – Add interactive maps to every post」是开源软件。 以下人员对
此插件做出了贡献。

贡献者

 *   [ Matteo Enna ](https://profiles.wordpress.org/matteoenna/)

「Map in Each Post – Add interactive maps to every post」插件已被翻译至 1 种本地
化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/map-in-each-post/contributors)
为本插件所做的贡献。

[帮助将「Map in Each Post – Add interactive maps to every post」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/map-in-each-post)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/map-in-each-post/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/map-in-each-post/)，或通过[RSS](https://plugins.trac.wordpress.org/log/map-in-each-post/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/map-in-each-post/)。

## 额外信息

 *  版本 **3.4.1**
 *  最后更新：**6 月前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/map-in-each-post/) 和 [Italian](https://it.wordpress.org/plugins/map-in-each-post/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/map-in-each-post)
 * 标签
 * [custom-map](https://cn.wordpress.org/plugins/tags/custom-map/)[map](https://cn.wordpress.org/plugins/tags/map/)
   [maps](https://cn.wordpress.org/plugins/tags/maps/)[post](https://cn.wordpress.org/plugins/tags/post/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/map-in-each-post/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/map-in-each-post/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/map-in-each-post/reviews/)

## 贡献者

 *   [ Matteo Enna ](https://profiles.wordpress.org/matteoenna/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/map-in-each-post/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/matteoedev/2.55)