=== Position === Contributors: mwtsn, mkjones Donate link: Tags: locations, location, map, contact Requires at least: 3.3 Tested up to: 3.8.1 Stable tag: 1.0.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Custom post types for locations. You can customise the features, and use meta boxes to link other post types to an event, or just include the properties of each directly on any post type you wish. == Description == Custom post types for locations. You can customise the features, and use meta boxes to link other post types to an event, or just include the properties of each directly on any post type you wish. Note: This plugin provides functions for you to use in your templates, it does not render content 'out of the box' (although it will in the future). Information on what functions and meta information you can hook into are detailed in the FAQ. = Features = * Locations custom post type (can be disabled) * Location settings meta box (can be enabled on any post type) * Related location meta box (off by default, but can be enabled on any post type) * Function to render a Google map, based on a location post code If you have any feature requests, please hit up the support section. == Installation == 1. Backup your WordPress install 2. Upload the plugin folder 'Swerve' to the `/wp-content/plugins/` directory 3. Activate the plugin through the 'Plugins' menu in WordPress == Frequently asked questions == = If I want to grab the locations in my loop, what is the default custom post type name? = It is: 'location' = What are the names of all the meta information for the 'Location settings' meta box? = Those are: * '_position_name' * '_position_email' * '_position_website' * '_position_telephone' * '_position_twitter' * '_position_facebook' * '_position_google' * '_position_linkedin' * '_position_address' * '_position_post_code' * '_position_map_height' = How do I render the Google map? = Use the function: position_get_map_embed( $post_id, $height = 'auto' ) You can pass an int into the $height parameter for the height of the iframe, or leave it empty to use the embed height that you can set in the eventbrite event meta box ('_position_map_height'). = What are the names of all the meta information for the 'Related location' meta box? = That is: * '_position_related' = Can I contribute? = Sure thing, the GitHub repository is right here: https://github.com/mwtsn/location == Changelog == = 1.0.0 = * Initial WordPress repository release == Upgrade notice == There have been no breaking changes so far.