Managing Locations

Locations let you group listings geographically, such as by countries, states, and/or cities. Locations is a custom taxonomy and are hierarchical in structure just like categories.

Setting up location hierarchy

Before adding locations to your directory, the location hierarchy must first be defined. By default, the location hierarchy is configured as Country -> State / Province / Region -> City. That is, locations at the first level of the hierarchy are treated as countries, locations at the second level as states, provinces, or regions, and locations at the third level as cities.

If you wish to change the default configuration; for example you may want to add a new Town level under City, or remove the Country level because your listings are all located within a single country; you may do so by following these steps.

  1. Login to your website if not yet logged in and go to the WordPress administration dashboard.

  2. Click Directories in the admin sidebar.

  3. Click the gear icon in the row of the directory to edit.

  4. Under the Content Types tab, click the Edit button in the Location row.

  5. Scroll down to the Location Hierarchy Settings section and select Yes for Enable custom location hierarchy.

    Here you can modify labels, remove one or more levels in the hierarchy, and/or add new levels to the hierarchy.

    Note: If you remove all the options, listings can not be associated with locations.

  6. After making changes, scroll down the page and click Save Changes.

Adding a location

Follow the steps below to add a location to your directory.

  1. Login to your website if not yet logged in and go to the WordPress administration dashboard.

  2. Select Locations under your directory menu in the admin sidebar.

  3. Use the Add Location form displayed next to the location list table as shown below:

    Enter the Name of location and then optionally fill out the Slug and Description fields, select a Parent Location and/or upload a photo for the location from the Photo field.

  4. Click the Add Location button to add your location.

Editing a location

To edit a location:

  1. Login to your website if not yet logged in and go to the WordPress administration dashboard.

  2. Select Locations under your directory menu in the admin sidebar.

  3. In the location list table, hover over to the row of the location that you wish to edit and click the Edit link that appears in the Name column.

  4. Make any changes needed to the location and then click Update.

Deleting a location

To delete a location:

  1. Login to your website if not yet logged in and go to the WordPress administration dashboard.

  2. Select Locations under your directory menu in the admin sidebar.

  3. In the location list table, hover over to the row of the location that you wish to delete and click the Delete link that appears in the Name column.

  4. In the popup window, click OK to delete the location.

Assigning locations to listings

Locations can be assigned to listings just like categories and tags. However, unlike categories and tags, the field for selecting a location is displayed under the Listings Fields metabox along with address and map fields as shown below.

Dropdown fields (Country, State, and City fields in the screenshot above) are displayed for specifying a location for the listing, each field corresponding to a single level in the location hierarchy. Note that you will need to actually select an option from each dropdown field in order to reveal subsequent level dropdown fields.

results matching ""

    No results matching ""