Keywords: Generate Locations


Videos are not designed to be a substitute for instructions. Please refer to the detailed Documentation below.

Page Generator Pro allows you to automatically produce keywords comprising of any combination of the following:

  • ZIP Codes
  • Cities
  • Counties
  • Regions (States)

To access the Generate Locations option:

  1. Click on Page Generator Pro > Keywords in the WordPress Administration menu
    Page Generator Pro: Keywords Menu
  2. Click the Generate Locations button below the Title
    Page Generator Pro: Generate Locations: Button
Don’t see the Generate Locations option? It’s new to Page Generator Pro 1.7.8 and higher.  Ensure that your license is valid, not expired and that you’ve updated to the latest version of the Plugin.
If you’re using Page Generator Pro 1.7.7 or older, please refer to the Generate Nearby Cities Documentation.

The following screen will then be displayed:
Page Generator Pro: Keywords: Generate Locations

Define the following options:

Setting Description
Keyword The template tag you’ll use when generating Pages / Posts / Custom Post Types.  This must be unique, and not a template tag you’ve already defined.
Output Type Defines the data that you want to use from each Location, storing it as a Term against this Keyword.

Clicking this field will present a list of valid Output Types:
Page Generator Pro: Generate Locations: Output Types: Dropdown

Click an Output Type to include it in the generated Keyword Terms.  For example, to return a list of ZIP Codes and Cities:

  1. Click inside the field
  2. Select the Postcode option
  3. Select the City option

Page Generator Pro: Generate Locations: Output Types: City

To change the order of existing selected fields, drag and drop them.

Sort Terms By Depending on the Output Type and Method values selected, generated terms (locations) can be stored in a specific order:

  • Distance
  • City Name
  • County Name
  • Region Name
  • ZIP Code

Note: Not all options above will be available, depending on the other options chosen. For example, Distance is only available when Method = Radius.

Country The country that you’ll be generating Locations within.
Method Radius:
The radius method will populate this Keyword’s Terms with all Locations that fall within the given Radius from the given Starting City / ZIP Code.Area:
The area method will populate this Keyword’s Terms with all Locations that fall within the given area constraints.

Radius

The radius method will populate this Keyword’s Terms with all Locations that fall within the given Radius from the given Starting City / ZIP Code.

This method is useful if, for example, you / your client offers services within a specific radius of your business location.

When using the Radius Method, the following additional options are displayed:

Setting Description
Starting City / ZIP Code Define the central starting point.  This is used in conjunction with the Radius option below, and will define a circular area from which all Locations will be added to this Keyword’s Terms.
Radius The number of miles from the Starting City / ZIP Code to search for Locations.  Any Locations found will be added to this Keyword’s Terms.

Area

The area method will populate this Keyword’s Terms with all Locations that fall within the given area constraints.

This method is useful if, for example, you / your client offers products or services within a specific Region(s), County(s) or City(s).

When using the Area Method, the following additional options are displayed:

Setting Description
Restrict by City / Cities Locations will only be added to the Keyword’s Terms if they match the given City / Cities.
Restrict by County / Counties Locations will only be added to the Keyword’s Terms if they match the given County / Counties.
Restrict by Region(s) Locations will only be added to the Keyword’s Terms if they match the given Region / Regions.

Example Usage

The following examples are typical / more common use cases for the Generate Locations functionality, but are not exhaustive.

ZIP Codes within a given Radius of a City

For example: generate a list of ZIP Codes within a 10 mile radius of Birmingham, UK, storing the Terms by nearest to furthest from Birmingham, UK.

Setting Description
Output Type ZIP Code
Sort Terms By Distance, Ascending
Country United Kingdom
Method Radius
Starting City / ZIP Code Birmingham
Radius 10

ZIP Codes within a given Radius of a ZIP Code

For example: generate a list of ZIP Codes within a 100 mile radius of B1 2JB, UK, storing the Terms by furthest to nearest from Birmingham, UK.

Setting Description
Output Type ZIP Code
Sort Terms By Distance, Descending
Country United Kingdom
Method Radius
Starting City / ZIP Code B1 2JB
Radius 100

City and ZIP Codes within a given Radius of a City

For example: generate a list of Cities and ZIP Codes within a 10 mile radius of Birmingham, UK, storing the Terms by ZIP Code, A to Z.

Setting Description
Output Type City, ZIP Code
Sort Terms By ZIP Code, Ascending
Country United Kingdom
Method Radius
Starting City / ZIP Code Birmingham
Radius 10

City and ZIP Codes within a given Radius of a ZIP Code

For example: generate a list of Cities and ZIP Codes within a 100 mile radius of B1 2JB, UK, storing the Terms by ZIP Code, Z to A.

Setting Description
Output Type City, ZIP Code
Sort Terms By ZIP Code, Descending
Country United Kingdom
Method Radius
Starting City / ZIP Code B1 2JB
Radius 100

ZIP Codes within a given City

For example: generate a list of ZIP Codes in the City of Birmingham, UK, storing the Terms by ZIP Code, A to Z.

Setting Description
Output Type ZIP Code
Sort Terms By ZIP Code, Ascending
Country United Kingdom
Method Area
Restrict by City / Cities Birmingham

ZIP Codes within a given Cities

For example: generate a list of ZIP Codes in the Cities of Birmingham, UK and Manchester, UK, storing the Terms by ZIP Code, Z to A.

Setting Description
Output Type ZIP Code
Sort Terms By ZIP Code, Descending
Country United Kingdom
Method Area
Restrict by City / Cities Birmingham, Manchester

ZIP Codes within a given County

For example: generate a list of ZIP Codes in the County of West Midlands, UK, storing the Terms by ZIP Code, A to Z.

Setting Description
Output Type ZIP Code
Sort Terms By ZIP Code, Ascending
Country United Kingdom
Method Area
Restrict by County / Counties West Midlands

ZIP Codes within given Counties

For example: generate a list of ZIP Codes in the Counties of West Midlands, UK and East Midlands, UK, storing the Terms by ZIP Code, A to Z.

Setting Description
Output Type ZIP Code
Sort Terms By ZIP Code, Ascending
Country United Kingdom
Method Area
Restrict by County / Counties West Midlands, East Midlands

Cities and ZIP Codes within a given County

For example: generate a list of Cities and ZIP Codes in the County of West Midlands, UK, storing the Terms by City, A to Z.

Setting Description
Output Type City, ZIP Code
Sort Terms By City, Ascending
Country United Kingdom
Method Area
Restrict by County / Counties West Midlands

Cities and ZIP Codes within given Counties

For example: generate a list of Cities and ZIP Codes in the Counties of West Midlands, UK and East Midlands, UK, storing the Terms by City, Z to A.

Setting Description
Output Type City, ZIP Code
Sort Terms By City, Descending
Country United Kingdom
Method Area
Restrict by County / Counties West Midlands, East Midlands
If you try to create / change a keyword to one that already exists, you’ll receive a warning telling you that the keyword has already been specified. Each keyword must be unique.