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

SHORTCODES

Embed with a page builder

Embed GEO my WP shortcodes in page builders, place search, result and map elements and troubleshoot preview or container issues.

2 min read · Updated December 1, 2026

Use GEO my WP shortcodes inside a page builder's shortcode-capable element. The page builder controls the surrounding layout; the saved GEO my WP form controls its search, results and map.

Embed a directory

  1. Create and save the required GEO my WP form.
  2. Copy its shortcode from the Forms table or Form Usage section.
  3. Add the page builder's shortcode element to your page.
  4. Paste the shortcode with the actual saved form ID.
  5. Save the page and open its real frontend preview.
[gmw form="123"]

Use a shortcode element rather than an element that prints HTML/code literally. A builder's HTML widget is not automatically a shortcode processor. PHP examples belong in PHP templates, not a normal text field.

Separate elements

Use search_form, search_results or map selectors for separate placement. Configure the form's Results Map for shortcode placement when needed. Avoid placing the same full form and its individual elements twice unless the integration explicitly supports that arrangement.

[gmw search_form="123"]
[gmw search_results="123"]

For a separate results page, set the form's destination and use the appropriate results shortcode there. Putting a search-only shortcode on a page does not configure its destination automatically.

Layout considerations

Give the form and map containers sufficient width. Use an explicit map height. Maps initially hidden inside tabs, popups or accordions may need the builder integration's resize handling when revealed. Test on the actual frontend before adding custom JavaScript.

The builder's editing canvas may not execute frontend scripts or supply the same post/member context. Context-sensitive Single Location shortcodes can display a different object in a reusable template preview. Confirm the intended object on the real page.

Verify the page

  • Test a signed-out search with known content.
  • Check pagination and any separate results destination.
  • Check maps after opening hidden containers.
  • Review phone widths and long labels.
  • If output is literal, fix shortcode processing before changing the GEO my WP form.