Single Location displays the saved GEO my WP location for one supported post, member or other object. Use it on a listing detail page or alongside content that needs an address, map or directions link.
What you need
Single Location is built into GEO my WP and always active. The object's locator component/adapter must also be available. The object needs a saved GEO my WP location, and map/address features need the applicable provider configuration.
Display a post's location
- Enable the post type under Posts Locator settings.
- Edit the post and save its location.
- Place the shortcode in processed content or a shortcode element.
- Open the actual post/frontend and check the result.
[gmw_single_location object="post" object_id="123" elements="title,address,map,directions_link"]
Replace 123 with the WordPress post ID. In a genuine single-post context the post adapter can infer the ID, but an explicit ID is clearer on another page. A directory form ID is a different identifier.
Choose useful output
Display only the elements the page needs. Address and a directions link can be enough for a compact card; a map can help on a detail page. Distance requires an available visitor/search origin. Saved optional contact data appears only when it exists and the adapter supports it.
Single Location does not provide a directory search, create locations or display every object on one map. Use a locator form, Mashup Map or Global Map for those workflows.
Members and other adapters
For BuddyPress members, use the Members Locator adapter and the intended member ID/context. Additional locators can supply their own adapters. Check the supported object name before copying a post example for another object type.
Troubleshoot an empty display
Check the saved location, object ID and active adapter first. Then check selected elements and provider errors. A page builder's sample context can differ from the frontend; verify the actual listing rather than treating an editor preview as proof.
