开发者 | matteoenna |
---|---|
更新时间 | 2024年12月9日 12:55 |
捐献地址: | 去捐款 |
PHP版本: | 5.0 及以上 |
WordPress版本: | 6.7.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
[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)[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".
/wp-content/plugins/map-in-each-post
directory, or install the plugin through the WordPress plugins screen directly.[map_in_post]
in your posts to display a map and input points via the form in the post editor.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.
Yes, you can customize the points for each map by entering the latitude and longitude coordinates in the form provided in the post editor.
Go to the plugin settings page and select the post types where you want the map functionality to be enabled.
The plugin uses Leaflet, an open-source JavaScript library for mobile-friendly interactive maps, to display the maps.