Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/horttcore/custom-post-type-locations/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A custom post type to manage locations
Supports
- Title
- Editor
- Excerpt
- Thumbnail
Custom Fields
- Street
- Street number
- ZIP
- City
- Address additional
- Region
- Country
- Latitude / Longitdude ( Google Maps GeoAPI )
Language Support
- english
- german
Hooks
Actions
location-table-before- Before the location tablelocation-table-first- Before the first row of the location tablelocation-table-last- After the last row of the location tablelocation-table-after- After the location tablesave-location-meta- Runs when the locationnt of interes location is saved; Location is passed as argument
Filter
location- Get the location datalocation-save- The location data that is saved into post_metalocation-get-lat-lng- Get latitude longitude
Changelog
v0.4
- Refactoring
v0.3
- Added hook:
location-get-lat-lng - Enhancement: Cleanup
v0.2
- Enhancement: Manual location check
- Bugfix: GeoAPI was not saved.
v0.1
- Initial release