Black Friday & Cyber Monday
50% OFF All plans, upgrades & renewals
View offers

SHORTCODES

Use directory and location widgets

Configure GEO my WP Search Form, Single Location and Current Location widgets, with results destinations and supported object requirements.

3 min read · Updated December 1, 2026

GEO my WP supplies WordPress widgets for search and location output. Use them in a widget area or another interface that supports classic WordPress widgets. A theme or page builder must provide the area where they appear.

  1. Add GEO my WP Search Form to the intended widget area.
  2. Set its Title and choose a saved Form.
  3. Configure a destination results page in the form, or the General Settings fallback.
  4. Place the results shortcode on that page.
  5. Save the widget and test a real submission.
[gmw form="results"]

The widget displays search controls, not a full directory list. Its selector includes supported standard Posts, Members, Groups and Users locator forms when available; it is not a universal chooser for every AJAX, Mashup or Global Map type.

GEO my WP Single Location

Choose the Object and Object ID. A numeric ID identifies a particular supported object. Zero lets the adapter use current page/loop context where supported. The ID is not a directory form ID.

Set a Widget title, unique Element ID and comma-separated Elements in the intended order. Supported base elements include title, distance, map, address, directions_link, directions_form, directions_panel and available location_meta. Choose address parts, metadata, distance units and map dimensions. Provider-specific map choices appear where supported.

Embedded directions_form and directions_panel output has separate Google service requirements in 4.5.5.8. See live directions compatibility. An outbound directions_link opens Google Maps separately and does not need Directions API permission on your key.

A location must already exist. A contextual widget in a global sidebar can show unexpected content outside a single-object page, so verify every template where that sidebar appears.

GEO my WP Current Location

Use the Current Location widget for the visitor's location, greeting, address/map and update controls. It is separate from a saved member or post location. Configure supported elements, labels and map choices, then test with and without an existing visitor location.

For Google address autocomplete in GEO my WP 4.5.5.8 and later, enable Places API (New) in the Google Cloud project and allow it on the browser key. Follow the Google Maps browser and server API-key setup guide, including its limited legacy fallback guidance.

Extension widgets

Extensions such as Nearby Locations can provide their own widgets. Their query and object requirements are covered in the relevant extension guide. Enabling one does not change the Search Form widget's role.

If a widget is unavailable

Check the required component/extension and whether your theme exposes widget areas. In a block-theme or builder workflow without classic widget support, use the documented shortcode in a shortcode-capable element instead.