Custom Post Type Management (Pro)

PRO FEATURE

The Pro version includes a built-in “Locations” custom post type that’s specifically designed for managing map locations. This provides a user-friendly way to create and organize locations without needing any third-party plugins.

Enabling the Locations CPT

  1. Navigate to TC Locations → Settings in WordPress admin
  2. Click the Locations CPT tab
  3. Add Display Name
  4. Add Slug
  5. Click Creat Location CPT
Success! You’ll now see “Locations” appear in your WordPress admin menu with the location pin icon.
Locations CPT settings page

CPT Configuration Options

CPT Name

Customize the display name of the custom post type. Default is “Locations”.

Examples:

  • Stores
  • Offices
  • Properties
  • Branches
Note: Changing the name only affects the admin menu label, not the internal slug.

CPT Slug

The URL-friendly version of the name. Default is “locations”.

Example URLs:

yoursite.com/locations/london-office
yoursite.com/stores/manchester-branch
Important:After changing the slug, visit Settings → Permalinks and click “Save Changes” to flush rewrite rules. Otherwise, your location pages may show 404 errors.

CPT Icon

Choose a custom Dashicon for the admin menu. Available options include:

  • dashicons-location (default – map pin)
  • dashicons-location-alt (alternative pin)
  • dashicons-admin-site (building)
  • dashicons-store (storefront)

View all Dashicons at: developer.wordpress.org/resource/dashicons

Creating a Location

Once the CPT is enabled:

  1. Click Your New CPT → Add New in WordPress admin
  2. Enter a title (e.g., “London Office”)
  3. Optionally add content, featured image, or excerpt
  4. Scroll down to the Location Coordinates metabox
  5. Set the location coordinates (see Location Metabox section)
  6. Click Publish
Adding a new location with map metabox

Managing Locations

Location List View

The locations list includes a custom “Coordinates” column that shows:

  • Location pin icon if coordinates are set
  • Latitude and longitude values
  • Quick link to view on Google Maps
Locations admin list with coordinates column

Supported Features

The Locations CPT supports:

  • Title and editor (description)
  • Featured image
  • Excerpt
  • Custom fields via metabox
  • Gutenberg block editor
  • Public archive pages

Using with Elementor

To display locations on a map:

  1. Add the TC Locations Pro widget to your page
  2. Set Location Source to Posts
  3. Set Post Type to Locations
  4. Field names auto-populate to _lmfe_latitude and _lmfe_longitude
  5. Your locations appear on the map automatically!
Auto-Detection:When you select the Locations post type, the widget automatically knows which fields contain the coordinates. No manual field mapping needed!

Disabling the CPT

If you no longer need the built-in CPT:

  1. Navigate to TC Locations → Settings → Locations CPT
  2. Uncheck Enable Built-in Locations CPT
  3. Click Save Changes
Data Preservation:Disabling the CPT hides it from the menu, but your location data remains in the database. You can re-enable it anytime without losing data.

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.