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

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:

Or by specifying the center point and zoom:

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:

  • 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:

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.

You can find the source code and contribute to the project on GitHub:Map in Each Post on GitHub

0

评论0

 
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
显示验证码
没有账号?注册  忘记密码?

社交账号快速登录