Location Information Display & Maps Anywhere

Use this shortcode to display detailed location information and maps anywhere on your site (pages, posts, widgets, Elementor, etc.). It supports multiple layouts, search, filtering by ID/slug, and sorting.

Syntax

[mulopimfwc_location_info]

Example (tabs layout with search)

[mulopimfwc_location_info layout="tabs" search="yes"]

Parameters

NameTypeDefaultAccepted valuesDescription
idstring"123" or "123,456,789"Show specific location(s) by ID.
slugstring"downtown" or "downtown,uptown"Show specific location(s) by slug.
layoutenumautoauto | tabs | compact | gridDisplay style for locations.
searchenumnoyes | noEnable a location search field.
compactenumnoyes | noForce compact view for a single location.
limitintany positive numberLimit the number of locations shown.
orderbyenumnamename | id | countSort locations by name, ID, or product count.
orderenumASCASC | DESCSort order.

Note: Use either id or slug. If both are provided, id takes priority.


Layouts Explained

  • auto
    Automatically selects the best layout based on the number of locations.
  • tabs
    Each location appears in its own tab with details and map.
  • compact
    Minimal view, ideal for a single location.
  • grid
    Card/grid-based layout, great for multiple locations.

Examples

1) Show all locations (auto layout)

[mulopimfwc_location_info]

2) Tabs layout with search enabled

[mulopimfwc_location_info layout="tabs" search="yes"]

3) Display specific locations by ID

[mulopimfwc_location_info id="123,456" layout="grid"]

4) Display locations by slug

[mulopimfwc_location_info slug="downtown,uptown" layout="tabs"]

5) Compact view for a single location

[mulopimfwc_location_info id="123" compact="yes"]

6) Limit and sort locations

[mulopimfwc_location_info limit="5" orderby="count" order="DESC"]

7) Use inside a PHP template

echo do_shortcode('[mulopimfwc_location_info layout="grid" search="yes"]');

Behavior & Notes

  • Maps support: Displays the configured map (Google Maps / OpenStreetMap, depending on plugin settings).
  • Search: When enabled, users can quickly filter locations by name/address.
  • Sorting: count sorting uses the number of products assigned to each location.
  • Responsiveness: All layouts are mobile-friendly.
  • Styling hooks: Output includes layout-specific classes (e.g. .layout-tabs, .layout-grid) for easy customization.

This shortcode is ideal for store locator pages, contact pages, or pickup/delivery information sections anywhere on your WooCommerce site.