Tutorial: Building Service and Location Pages

Introduction

This tutorial demonstrates how to generate content for a local business, that offers a few services and targets specific geographical locations.

Prerequisites

We’d recommend reading and reviewing the following Documentation ahead of following this tutorial, so you are familiar with the main functions of the Plugin.  This tutorial is not designed to be a substitute for the rest of the Documentation:

Brief

In this tutorial, we’ll be generating content for a plumber who offers Bathroom Installations, Emergency Fixes and Central Heating Installations across the West Midlands county of the UK.

Planning

We’ll want to create two keywords:

  • service: listing the services that the plumbing business offers,
  • location: listing the locations that the plumbing business offers their services in.

Once we’ve created those two keywords, we’ll want to:

  • Write some content in a template that uses these keywords,
  • Test our content by generating a single draft Page,
  • Make any amendments as necessary,
  • Generate all of our Pages from our template.

1. Creating Keywords

Services

To create our service keyword, navigate to Page Generator Pro > Keywords in the WordPress Administration menu:
Page Generator Pro: Keywords: Menu

Click the Add Keyword button below the title:
Page Generator Pro: Keywords: Add Keyword Button

Define the following options:
Page Generator Pro: Tutorial: Add Keyword

  • Keyword: service
  • Terms:
    • Bathroom Installations
    • Emergency Fixes
    • Central Heating Installations

Click the Save button

Locations

We could repeat the above process, and manually enter a list of locations that the business serves – however this would be time consuming.  Instead, we can make use of Page Generator Pro’s Generate Locations functionality.

To create our location keyword, navigate to Page Generator Pro > Keywords in the WordPress Administration menu:
Page Generator Pro: Keywords: Menu

Click the Generate Locations button below the Title
Page Generator Pro: Generate Locations: Button

Define the following options:
Page Generator Pro: Tutorial: Location Keyword

  • Keyword: location
  • Output Type: ZIP Code, City, County
    • Click in the Output Type field, and select ZIP Code from the dropdown list.
    • Click in the Output Type field again, this time selecting the City option from the dropdown list.
    • Finally, click the Output Type field, selecting the County option.
  • Sort Terms By: ZIP Code, Ascending
    • The first dropdown option allows us to choose the order that Terms are stored against this Keyword.  We’ll work through the ZIP Codes alphabetically, so select the ZIP Code option.
    • The second dropdown option allows us to choose whether to order the Terms from A to Z, or Z to A.  We’ll work through the ZIP Codes alphabetically, so select the Ascending (A-Z) option.
  • Country: United Kingdom
  • Method: Area
    • The area method allows us to fetch every location based on the restrictions that we define.
    • When we select this option, some new options will be displayed.
  • Restrict by County / Counties:
    • As we want to target all locations in the West Midlands, which is a county in the UK, we’ll use this option.
    • Start typing West Midlands into the field.
    • After a few seconds, West Midlands, England, UK will appear in the dropdown.
    • Click this option, so it is added to the field.

Click the Generate Keyword with Locations button.

2. Creating Content

With our service and location keywords defined, we now need to build our content.

Using Page Generator Pro’s Generate Content functionality, we can build a Content Group, which acts as a template.  From this, we’ll then build (generate) our Pages.

To create our Content Group, navigate to Page Generator Pro > Generate Content in the WordPress Administration menu:
Page Generator Pro: Generate Content: Menu

Click the Add New button:
Page Generator Pro: Generate Content:

The following screen will be displayed:
Page Generator Pro: Tutorial: Generate Content

Title

Let’s start by defining the title that we want for each of our Pages.  As we’re targeting each service and location, we want our Page Title to include both of these keywords.

Click on the Insert Keyword dropdown on the top right of the Title field, and click service
Page Generator Pro: Tutorial: Add Keyword to Title using Dropdown

This will insert the {service} keyword into the Title field:
Page Generator Pro: Tutorial: Title

You can also type in the keyword into the field.  Let’s finish the Title by typing in in {location}
Page Generator Pro: Tutorial: Final Title

The service and location keywords will be replaced by a unique term for each Page that’s generated.  If we take the first term from our service and location keywords, the first Page generated would use the following terms:

Keyword Term
service Bathroom Installations
location Birmingham, West Midlands, B1 1AY

Our Title (for the first generated Page) will read:

Bathroom Installations in Birmingham, West Midlands, B1 1AY

Content

Next, let’s write some content about the service and location.  In this tutorial, we’ve gone ahead and produced some content below, which you can copy and paste into the Text Editor from https://gist.githubusercontent.com/n7studios/8e8fe6074d325b559ec4962a055b102d/raw/b4f81e7060d06ade8e7c51def60c83a61dc3891a/page-generator-pro-tutorial-content.htm

Be sure to use the Text editor when pasting the above content, and not the Visual Editor.

Click on the Visual tab, to preview the content:
Page Generator Pro: Tutorial: Visual Editor

Permalink

By default, WordPress will generate a Permalink based on the Title.  However, if we need more control over the Permalink, we can manually enter a Permalink now.

To do this, enter {service}-{location} into the Permalink text field:
Page Generator Pro: Tutorial: Permalink

Publish

By default, Page Generator Pro is set to publish content as Pages – but just to be sure, check that the Post Type option is set to Page:
Page Generator Pro: Tutorial: Publish Options

Generate

There are a few different ways that we can generate content, each of which are based on the keywords that we’re using:

Method Description
All The All method generates Pages for all possible unique combinations of the keywords specified in the Title and Content.  This would ensure that every service and location combination has its own unique Page.
Sequential The Sequential method honors the precise order of each keyword’s terms.  This would mean that the first service and first location would be used for the first page, the second service and second location would be used for the second page, and so on.
Random The Random method generates Pages, choosing a term from each keyword at random for each Page that is generated.

Given that our plumbing business covers all listed services in all locations, we want to use the All method.

Actions

With our Title, Content and Permalink completed, plus the publish and generation settings confirmed, let’s save our Content Group before starting content generation.

In the Actions box, click the Save button:
Page Generator Pro: Tutorial: Actions

The screen will update, confirming that the Content Group has been saved:
Page Generator Pro: Tutorial: Save Confirmation

Test Content

With our Content Group saved, we’re almost ready to generate our content.

Before we do this, it would be a good idea to test the content and settings by generating a single Page in draft mode.  This ensures that the Page isn’t made available to web site visitors, in case we spot any issues and need to change settings or content in our Content Group.

To do this, in the Actions box, click the Test button:
Page Generator Pro: Tutorial: Actions

After a few moments, the screen will update, confirming that a Test Page has been generated.  The notification also tells us the terms that were used to replace the keywords:
Page Generator Pro: Tutorial: Test Generation Notification

Let’s click the link in the notification, which takes us to the draft Page:
Page Generator Pro: Tutorial: Test Result

Amending Content

Whilst the content looks good, there are a few areas we could improve on.  Let’s go back to the Content Group’s edit screen, and make some improvements.

Extracting Keyword Term Subsets

Whenever we’re using the location keyword, we’re getting the full term.  For example, our Title is Bathroom Installations in Birmingham, West Midlands, B1 1AY. This is not the most user or SEO friendly title, so let’s look at extracting keyword term subsets to produce a better title.

When we created our location keyword, some additional fields were also automatically completed for us.  If we go to Page Generator Pro > Keywords, and click on the location keyword, you’ll see two fields: delimiter and columns:
Page Generator Pro: Tutorial: Location Keyword Column Names

These correspond to the location terms listed, namely:

  • Delimiter: The character separating words for each Term,
  • Columns: Column names corresponding to each delineated word in the Terms, based on the Delimiter.

In our location keyword, you’ll see that we have the following:

  • Delimiter: ,
  • Columns: city_name, county_name, zipcode

Going back to our Content Group, this means that we can control which parts of each Term are output when we use our location keyword.

For the Title, we only want the City and ZIP Code, as the County will always be the same (i.e. always the West Midlands).  Using the columns defined in our location keyword, we can update our Title field to read: {service} in {location(city_name)}, {location(zipcode)}.
Page Generator Pro: Tutorial: Extracting Keyword Term Subsets

This will produce a more user-friendly Title:

Bathroom Installations in Birmingham, B1 1AY

Rich Content

For Pages to be considered for inclusion in search engine indexes, it’s important that the content comprise of more than a few paragraphs of text.  We can enhance the content with some of Page Generator Pro’s shortcodes.

Let’s start by adding a Google Map illustrating the location where the service is offered.  We’ll add this after the first paragraph, by clicking at the end of the first paragraph and pressing Enter, to create a new paragraph for our Google Map:
Page Generator Pro: Tutorial: Setting up Google Maps

Next click on the black marker icon in the toolbar of the Visual Editor:
Page Generator Pro: Tutorial: Google Maps Button

In the modal dialog window that appears, we have several options to complete:
Page Generator Pro: Tutorial: Google Maps Modal

  • Location: Keywords can be added to this field, and we want the Google Map to be as precise as possible.  Therefore, we want to output the ZIP Code here, which we can do by using {location(zipcode)}, UK
  • Height: If we need the map’s height on the computer screen to be taller, we can increase the default 250px.  Let’s change this to 350px.
  • Zoom Level: As we’re displaying a postal code / zip code area on the map, we want to show some detail by zooming in more than the default setting.  Let’s change the Zoom Level to 16.

Click the Insert button, and you’ll see that a WordPress Shortcode has been added where we previously had a blank space:
Page Generator Pro: Tutorials: Google Maps Shortcode

Images

We can also add images, to further enhance our Content and SEO.

Before the Costs heading, add a blank paragraph, and then click on the black camera icon in the toolbar of the Visual Editor:
Page Generator Pro: Tutorial: Unsplash Button

In the modal dialog window that appears, we have an option to specify a Term:
Page Generator Pro: Tutorial: Unsplash Modal

The Term is the search query that is used when Page Generator Pro searches for images on Unsplash (a free stock photography site).  As we want our images to be relevant to the content we’re producing, we can use keywords here.  Let’s go ahead and enter {service} into the Term field.

Click the Insert button, and you’ll see that a WordPress Shortcode has been added where we previously had a blank space:
Page Generator Pro: Tutorial: Unsplash Shortcode

Spintax

Another method we can use to enhance the uniqueness of each generated page is to use Spintax.

Spintax is where a list of words are written, instead of a single word, and Page Generator Pro will choose one word at random from the list for each generated Page.

For example, a sentence might be:

Writing content is a lot of fun.

Using spintax, we can use:

{Writing|Creating} {content|articles} is a {lot of fun|rewarding experience}

Page Generator Pro will then, at random, generate a variation for each generated Page.  In this case there are 8 possible variations:

Writing content is a lot of fun
Creating content is a lot of fun
Writing articles is a lot of fun
Creating articles is a lot of fun
Writing content is a rewarding experience
Creating content is a rewarding experience
Writing articles is a rewarding experience
Creating articles is a rewarding experience

Applying this to our content, we can replace some words with spintax.  Let’s apply some spintax to our first paragraph:

PlumbCo specialises in providing a {comprehensive|complete|thorough} {service} service. From start to finish, our work is backed by a 12 month warranty, and we can offer a full range of solutions to meet and {exceed|eclipse|better} your {requirements|needs|expectations}.

We can also use Page Generator Pro’s automatic spintax generation tool, to save us time, or if we’re struggling to think of some synonyms for certain words.

Select the Costs paragraph:
Page Generator Pro: Tutorial: Spintax: Select Content

In the Visual Editor’s toolbar, click the spintax button:
Page Generator Pro: Tutorial: Spintax Button

After a few seconds, you’ll see that the content for the Costs paragraph has changed to include spintax:
Page Generator Pro: Tutorial: Spintax'd Text

Re-testing our Content

With the changes to our content made, let’s re-test them.

To do this, in the Actions box, click the Test button:
Page Generator Pro: Tutorial: Actions

After a few moments, the screen will update, confirming that a Test Page has been generated.  The notification also tells us the terms that were used to replace the keywords:
Page Generator Pro: Tutorial: Test Generation Notification

Let’s click the link in the notification, which takes us to the draft Page:
Page Generator Pro: Tutorial: Test Generation: Google Map Page Generator Pro: Tutorial: Test Generation: Image and Spintax

We can now see our changes, including the Google Maps, Images and Spintax.

Generate Content

If we’re happy with our content, we can now go ahead and generate all of our Pages.  To do this, click the Generate button in the Actions section of the screen:
Page Generator Pro: Tutorial: Actions

A new screen will appear, showing a progress bar and log.  As each page generates, the progress bar and log will update:
Page Generator Pro: Tutorial: Generate Log