开发者 | shawfactor |
---|---|
更新时间 | 2017年4月2日 17:29 |
捐献地址: | 去捐款 |
PHP版本: | 3.0 及以上 |
WordPress版本: | 4.7 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
lh-places
folder to the /wp-content/plugins/
directoryThis plugin is part of the LocalHero project for member driven WordPress organisations but as it is modular could be used for other things. Use your imagination
Place the short code [lh_places_geolocate] anywhere in the your post_content.m The shortcode has one optional parameter call url. This is the url that the browser will request, when making its geolocated search. By default this will be the blog url but if you wish to search a custom post type then use the url of the custom post type archive.
Place the shortcode [lh_places_geomap] into your post_content. The shortcode takes two options 'p' which is the post id of the place you wish to display or 'post_parent' which is the post id of the parent place of a set of places you may wish to display. Please don't use both.
by default posts and pages can have a place attached (se the post edit screen). To add (or remove) an additional post type you can use the lh_places_from_posttypes filter which takes and returns the eligible post types. See plugin source.