Dynamic Locations Mode (Pro)

Dynamic Locations mode allows you to automatically load location markers from WordPress posts or custom post types. This is ideal for displaying locations that are managed as content, enabling you to add/edit locations from the WordPress admin without touching the Elementor page.

PRO FEATURE

Setting Up Dynamic Mode

Step 1: Set Location Source

In the widget settings, set Location Source to Posts.

Step 2: Select Post Type

Choose which post type contains your location data:

  • Locations (plugin’s built-in CPT – recommended)
  • Posts (WordPress default)
  • Pages
  • Any Custom Post Type (Products, Events, etc.)
Tip:If you don’t see “Locations” in the list, enable it first in TC Locations → Settings → Locations CPT.

Step 3: Field Mapping

Tell the plugin which custom fields contain the latitude/longitude data:

Using Plugin Fields (Automatic)

If you’re using the plugin’s built-in CPT or have enabled the metabox on your post type, the fields will auto-populate to:

  • Latitude Field: _lmfe_latitude
  • Longitude Field: _lmfe_longitude
Auto-Detection:The plugin automatically detects if the selected post type has its metabox enabled and fills in the correct field names!

Using Custom Fields (Manual)

If you’re using your own custom fields (e.g., via ACF or Metabox.io):

  1. Enter your latitude field name (e.g., location_lat)
  2. Enter your longitude field name (e.g., location_lng)

Using Elementor Dynamic Tags

You can also use Elementor’s dynamic tag system:

  1. Click the dynamic tag icon next to the field input
  2. Select your data source (ACF Field, Metabox Field, etc.)
  3. Choose the field containing coordinates
Field mapping with auto-detected plugin fields

Query Settings

Control which posts are displayed as map markers:

Posts Per Page

Set the maximum number of locations to display. Use -1 for unlimited.

Order By

Sort locations by:

  • Date: Newest or oldest first
  • Title: Alphabetically
  • Random: Different order on each page load
  • Menu Order: Custom order (if post type supports it)

Advanced Query Options

Displaying Multiple Post Types

You can display locations from multiple post types on a single map:

  1. In the widget settings, click the Post Types field
  2. Select multiple post types (e.g., “Stores”, “Offices”, “Branches”)
  3. The map will display all locations from all selected types
Tip:Locations are ordered by the “Order By” setting. When using multiple post types, all posts are queried together and sorted as one combined list.

Include Specific Posts

To show only specific locations on your map:

  1. Find the post IDs you want to include:
    • Go to your WordPress admin → Locations (or Posts, etc.)
    • Hover over a post – the ID appears in the URL (e.g., post=123)
    • Or check the “Coordinates” column for the ID
  2. In the widget, enter the IDs in Include Specific Posts
  3. Example: 123, 456, 789
Note: When you use “Include Specific Posts”, only those posts will display – the map ignores other query settings like “Posts Per Page” and “Order By”.

Exclude Specific Posts

To hide certain locations from the map:

  1. Find the post IDs you want to exclude (same method as above)
  2. Enter the IDs in Exclude Specific Posts
  3. Example: 999 (to hide post ID 999)

Filter by Taxonomy

Limit results to specific terms from a selected taxonomy (optional):

  1. Select a taxonomy in Taxonomy
  2. Enter term IDs or slugs in Terms (comma-separated)
  3. Choose Include or Exclude in Taxonomy Filter Type
Tip: The taxonomy filter applies to the selected post types. Use term slugs for readability or IDs for precision.

Example Queries

Show All Stores + All Offices

Post Types: Stores, Offices
Posts Per Page: -1
Order By: Title
Order: ASC

This displays all locations from both CPTs, alphabetically sorted.

Show Specific Locations Only

Post Types: Stores
Include Posts: 123, 456, 789
Posts Per Page: (ignored when using Include)

This displays only the 3 specified posts, in the order of the IDs entered.

Show All Except Hidden Locations

Show Only Locations in a Taxonomy

Post Types: Locations
Taxonomy: location_category
Terms: london, manchester
Taxonomy Filter Type: Include

This displays only locations tagged with those terms.

Post Types: Locations
Exclude Posts: 999
Posts Per Page: 50
Order By: Date
Order: DESC

This displays up to 50 locations (newest first), excluding post ID 999.

Popup Content Options

Control what displays in location popups:

Title Field

The field to use for the popup title. Options:

  • Post Title: Uses the post’s main title (default)
  • Custom Field: Enter a field name to use instead
  • Dynamic Tag: Use Elementor dynamic tags

Popup Content

What to display in the popup body:

  • Post Excerpt: Show the post excerpt
  • Custom Field: Display a specific custom field
  • None: Title only

Example Popup Configuration

Title Field: post_title
Popup Content: Post Excerpt
Show Featured Image: Yes
Link to Post: Yes
Map displaying dynamic locations from posts

Advanced Features

Custom Pin Colors (Pro)

Each location can have a unique marker color. If you’ve set custom pin colors in the metabox, they’ll automatically be applied to the map markers.

Conditional Display

Use Elementor’s native conditions to show/hide maps based on:

  • User login status
  • User roles
  • Archive type
  • Custom conditions

Need more help?

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Asset-22@2x-8.png

Sales

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Asset-18@2x-8.png

Help & support

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.

Asset-206@2x-8.png

Article & News

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.