
Custom Post Type to Map Store
v1.1.0lriaudel · 2020年5月20日 上架
An another Store Locator on WordPress but with OpenStreetMap & Leaflet and Meta Fields
- 正在使用
- 30+
- 评分
- 5.0 / 5
- 累计下载
- 2,370
- 最近更新
- 2020年6月19日
1 条评价需要 WordPress 4.0+已测试到 5.4.26PHP 7.0+
截图
The plugin allows to :
- Generate a GEOJson feed from coordinates recorded in the sample posts.
- Display this feed on a map with a shortcode.
Features
- Mapping from a Post Type to generate a GeoJson feed of all posts.
- Exposure this Geojson feeds on the WordPress Rest-API
- Possibility to make a template for the map markers popup
- Coordinate reading compatibility for :
- a text field
- an ACF Google Map field
- an ACF field for the ACF OpenStreetMap Fields extension
- Displaying a map by shortcode of all points.
- Open Street Map put in cache
Hook
The marker content
You can customize more finely the marker popup content.
Example:
<?php
function bindPopup_content_filter( $bindPopup_content, $post_id ) {
return "Yeahhhhh";
}
add_filter( 'cpt_to_map_store_bindPopup_content', 'bindPopup_content_filter', 10, 2 );
?>
Cache
This plugin works with Tiles Proxy for OpenStreetMap for put in cache the map tiles.
Translations
- English – default, always included
- French
Important Information !
Have fun



