Provides a custom post type and custom fields for describing locations.
The UCF Location Custom Post Type plugin provides the location custom post type and custom fields for describing physical locations.
Head over to the UCF Location Custom Post Type wiki for detailed information about this plugin, installation instructions, and more.
These plugins must be activated for the theme to function properly, and/or to satisfy core feature requirements for ucf.edu.
Bug Fixes:
- Corrected orderby bug on location-search shortcode.
Enhancements:
- Added composer file.
Bug Fixes:
- Corrects an issue where duplicate post names are generated due to the stripping of the abbreviation during the import.
Enhancements:
- Removed plugin version constant in favor of retrieving the current version number from the main plugin file automatically when needed
Enhancements:
- Updated JS for the locations typeahead shortcode to only enqueue on pages that use that shortcode.
- Renamed handles for third-party JS to establish consistency between other UCF plugins that use equivalent scripts and allow a single set of scripts to be used. This update removes checks for existing scripts from the Degree Search Plugin.
Enhancements:
- Adds an old fashion form for searching locations, implemented via shortcode on pages. The
[location-search]will add the form and results to any page it's added to.
Bug Fixes:
- Updates the logic that determines if images need to be reimported.
Enhancements:
- Updated location import and association scripts to match against existing object types in WordPress and against Map using case-insensitive matching.
Enhancements:
- Added field to add a spotlight.
Enhancements:
- Updated the location importer to support the updated location feed schema from Map's upcoming v1.13.5 release.
- Updated the location importer's
create_new()andupdate_existing()methods to require incoming location data to have a title/name set. If the incoming location doesn't have a name/title, processing of that location is skipped and an error is stored + spat out when the import finishes. - Bumped minimum PHP version requirement to 7.0 to support null coalescing.
Bug Fixes:
- Moved the step in the location importer that unsets an existing location post from
existing_locationsto only occur when an existing location is successfully updated. - Fixed errors in the location importer caused by attempting to loop through
map_datawhenget_data()returnsfalse. - Fixed output of error messages at the bottom of
print_stats()in the location importer.
Enhancements:
- Updated
UCF_Location_Post_Type::location_append_meta()to ensureevents_markuppost meta is empty when no events are returned. - Updated CONTRIBUTING doc.
Bug Fixes:
- Corrected a syntax error on the admin javascript.
Enhancements:
- Adds the
form-control-searchclass to the typeahead input.
- Initial release
n/a
Note that compiled, minified css and js files are included within the repo. Changes to these files should be tracked via git (so that users installing the plugin using traditional installation methods will have a working plugin out-of-the-box.)
Enabling debug mode in your wp-config.php file is recommended during development to help catch warnings and bugs.
- node
- gulp-cli
- Advanced Custom Fields Pro or Free > 5.0.0
-
Clone the UCF-Location-CPT-Plugin repo into your local development environment, within your WordPress installation's
plugins/directory:git clone https://github.com/UCF/UCF-Location-CPT-Plugin.git -
cdinto the new UCF-Location-CPT-Plugin directory, and runnpm installto install required packages for development intonode_modules/within the repo -
Optional: If you'd like to enable BrowserSync for local development, or make other changes to this project's default gulp configuration, copy
gulp-config.template.json, make any desired changes, and save asgulp-config.json.To enable BrowserSync, set
synctotrueand assignsyncTargetthe base URL of a site on your local WordPress instance that will use this plugin, such ashttp://localhost/wordpress/my-site/. YoursyncTargetvalue will vary depending on your local host setup.The full list of modifiable config values can be viewed in
gulpfile.js(seeconfigvariable). -
Run
gulp defaultto process front-end assets. -
If you haven't already done so, create a new WordPress site on your development environment to test this plugin against, and install and activate all plugin dependencies.
-
Activate this plugin on your development WordPress site.
-
Configure plugin settings from the WordPress admin under "Locations".
-
Run
gulp watchto continuously watch changes to scss and js files. If you enabled BrowserSync ingulp-config.json, it will also reload your browser when plugin files change.
- This plugin's README.md file is automatically generated. Please only make modifications to the README.txt file, and make sure the
gulp readmecommand has been run before committing README changes. See the contributing guidelines for more information.
Want to submit a bug report or feature request? Check out our contributing guidelines for more information. We'd love to hear from you!