Generate: Content


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

Haven’t set up any Keywords yet?  You’ll need to do this first – read how to manage Keywords.

The Generate Content section allows you to define one or more Content Groups (or Content Templates). Each Content Group you create is unique, and comprises of the keywords, settings and content that you want to use when generating Posts, Pages or Custom Post Types.

Looking to mass generate Taxonomy Terms, such as Categories or Tags? Refer to the Generate Terms Documentation.

Click on the Page Generator Pro menu entry in the WordPress Administration, and then click Generate Content.
Page Generator Pro: Generate Content: Menu

Add or Edit a Content Group

  • Click the Add New button below the Title:
    Page Generator Pro: Generate Content:
  • Click on the Edit text below the Group you want to edit:
    Page Generator Pro: Generate: Group Actions

You will then be presented with a screen similar to the one used to edit your WordPress Posts and Pages:
Page Generator Pro: Generate: Content

You’ll use this screen to:

  • Define various fields, such as the Title, Content and Featured Image, which will be used for each generated Page / Post,
  • Determine whether you want to generate Pages, Posts or another registered Post Type from this Content Group,
  • How the Plugin should generate content.
Using a Page Builder and don’t see it on this screen?  You may need to enable it.  Refer to the Page Builder Documentation for steps on how to do this.

Using Keywords

Your defined Keywords can be used in most areas of a Group.  Depending on the field you’re editing, you can use the Insert Keyword dropdown option:
Page Generator Pro: Generate: Keyword Dropdown

When generating content, Page Generator Pro will replace these keywords with actual terms specified in the keywords.  In the above example, if our {service} keyword comprises of Web Design and Web Development, the Plugin would generate at least two Pages:

  1. Web Design in…
  2. Web Development in…

Alternatively, you can start typing, and a dropdown list of matching keywords will be displayed.  For example, to add a defined Keyword called service, we can start typing service, and then click the resulting keyword in the list:
Page Generator Pro: Generate: Content: Using Keywords: Autocomplete

Depending on the keyword, you may see some additional options to choose for that keyword.  These are described in the Using Keywords: Extracting Term Subsets section below.

Alternatively, you can manually insert keywords by using the curly braces option.  For example, to add a defined Keyword called city, you’d use {city}
Page Generator Pro: Generate: Keyword Curly Braces

Entering keywords manually into Visual Editors or Page Builders? Make sure that the keyword is pasted as plain text.  You can confirm this by going into the HTML view of most Visual Editors or Page Builders, and confirming that the keyword appears as plain text e.g. {keyword}, not wrapped in HTML tags e.g. <span>{</span>keyword<span>}</span>

You can insert Keywords manually into any content-based text field, even if the Insert Keyword dropdown isn’t present.  For example:

  • Title
  • Permalink
  • Content
  • Excerpt
  • Custom Fields
    • Meta Key
    • Meta Value
  • Taxonomies (where non-hierarchal e.g. tag based)

Using Keywords: Transforming Keywords

The output of keyword terms can be transformed, by using a flag after the keyword.  For example, if you have a {city} keyword with the term Birmingham, West Midlands:

Transformation Syntax Output
Uppercase {city:uppercase_all} BIRMINGHAM, WEST MIDLANDS
Lowercase {city:lowercase_all} birmingham, west midlands
Capitalise first letter {city:uppercase_first_character} Birmingham, west midlands
Capitalise first letter of each word {city:uppercase_first_character_words} Birmingham, West Midlands
Convert to Permalink style slug {city:url} birmingham-west-midlands
Force Specific Term {city:2} Output would always be the 2nd term listed in the {city} keyword.

Using Keywords: Extracting Term Subsets

Assuming you have the following example Keyword configured:

Setting Value
Keyword location
Terms Birmingham, West Midlands
Harborne, West Midlands
Selly Oak, West Midlands
Delimiter ,
Columns city, county

We can output a subset of each Term’s data by using the keyword’s defined columns.  In the above example, this means that we could use the following keywords in our Content Group:

Keyword Example Value
{location(city)} Birmingham
{location(county)} West Midlands

Keyword Transformations can also be applied to Keyword Columns.  Taking {location(city)} as an example:

Transformation Syntax Output
Uppercase {location(city):uppercase_all} BIRMINGHAM
Lowercase {location(city):lowercase_all} birmingham
Capitalise first letter {location(city):uppercase_first_character} Birmingham
Capitalise first letter of each word {location(city):uppercase_first_character_words} Birmingham
Convert to Permalink style slug {location(city):url} birmingham
Force Specific Term {location(city):2} Harborne

Using Taxonomy Keywords in Groups

Any Taxonomy can also be used as a Keyword, by inserting the {taxonomy_name} tag into your content (where name is replaced by the name of your Taxonomy).  For example, if you have Categories defined on your WordPress web site (typically found at Posts > Categories), you’d use :
Page Generator Pro: Generate: Content: Taxonomy Keywords

It’s best to think of Taxonomies as predefined Keywords.  Your Taxonomy Terms are the equivalent of a Keyword’s Terms

You can insert Taxonomy Keywords manually into any content-based text field, even if the Insert Keyword dropdown isn’t present.  For example:

  • Title
  • Permalink
  • Content
  • Excerpt
  • Custom Fields
    • Meta Key
    • Meta Value

Content

  • Title: The Title for each generated Page, Post or Custom Post Type. Supports keywords, which can be inserted manually or by clicking on the relevant keywords below.  A different keyword data item is then chosen for each generated Post.
  • Content: The content for each Page, Post or Custom Post Type. Also supports keywords, which can be inserted manually or by clicking on the keyword button within the Visual Editor.
Refer to the Shortcode Documentation to cover how to use Shortcodes within the Content.
Using a Page Builder?  Refer to the Page Builders Documentation for Page Builder specific steps you may need to follow.

Permalink

Page Generator Pro: Generate: Permalink

Automatically generated, but again can be manually specified with keywords.   A different keyword data item is then chosen for each generated Post.

Permalinks must only contain alphanumeric characters, dashes, and/or underscores. No spaces.

When specifying a Permalink, it must be unique for each generated Page.  If it is not, existing generated Pages will be overwritten.
We don’t recommend using Spintax here, as it may result in multiple Pages having the same Permalink, causing confusion when you expect more content to have been generated than the actual result.  This is by design, as each Page must have its own unique Permalink.

Excerpt

Page Generator Pro: Generate: Excerpt

Don’t see an Excerpt option?  It’s only displayed if the Post Type you’re generating supports Excerpts (such as Posts).

Allows you to specify the excerpt for each Post that is generated.  Keywords can be used here by clicking the Insert Keyword dropdown, and clicking the keyword tag to use.


Custom Fields

Page Generator Pro: Generate: Custom Fields

You can add, edit or delete custom fields (Post Meta fields) to each generated Page:

  • To add a Custom Field, click the Add Custom Field button, and then define the Meta Key and Meta Value.
  • To edit an existing Custom Field, change the Meta Key and/or Meta Value to suit.
  • To delete an existing Custom Field, click the delete link below the Meta Key field.
Looking to generate SEO metadata? We support some SEO Plugins, so you might not need to use Custom Fields for this.  Read this documentation for further instructions.

Author

Page Generator Pro: Generate: Author

You can specify the Author of the generated content, or have Page Generator Pro randomly choose a WordPress User at random for each Page/Post generated.

  • Author: Specify the Author of the generated content.  Ignored if the Rotate option below is checked.  To specify an author, begin typing at least 2 – 3 characters of the Author’s WordPress Username, and then choose the applicable Author from the results list.
  • Rotate: If checked, this option will choose a different Author for each Post that is generated.  If not checked, an additional option will appear, allowing you choose which Author should be assigned to the Post.

Discussion

Page Generator Pro: Generate: Discussion

Don’t see any Discussion Options?  They are only displayed if the Post Type you’re generating supports Comments (such as Posts).
  • Allow comments: Choose to allow comments to be added to each generated Post.
  • Allow trackbacks and pingbacks: Choose to allow trackbacks and pingbacks to be added to each generated Post.

Publish

Page Generator Pro: Generate: Publish

  • Post Type: Choose the Post Type to generate.  This might be Pages, Posts or any registered Custom Post Types provided by your themes or plugins.
  • Status: Choose the status of each generated Page
    • Draft: Saves each generated Page as a draft.  You’ll then need to go to each Page and manually publish them if you want visitors to see them.
    • Scheduled: Schedules publication of each Page.  The first Page will be published immediately on Page Generation, with additional Pages being scheduled based on the Schedule Increment setting
    • Private: Saves each generated Page as private.
    • Published: Publishes each generated Page.
  • Schedule Increment: When Status = Scheduled, this option appears, allowing you to define the scheduled publication date and time relative to the last generated Page.

Generate

Page Generator Pro: Generate: Generation

We’ve written a separate detailed guide on how each Generation Method works.

In conjunction with the Method option, there are other generation settings which work in conjunction:

  • Overwrite:
    • No: Existing generated Pages will not be overwritten.
    • Yes: Existing generated Pages will be overwritten:
      • The Permalink of the generated Page matches an existing Permalink for a generated Page, and
      • The existing generated Page was generated by this Plugin’s Group.
    • Yes, preserving original Publish Date: As above, but the Publish Date on the overwritten existing Page(s) is preserved.
  • No. Posts: Choose the number of Posts to generate.  If zero or blank, Page Generator Pro will attempt to produce all possible combinations based on the above generation method.
    If the Number of Posts settings exceeds the possible maximum number of unique Posts that could be generated, Page Generator Pro will honor the possible maximum number of unique Posts instead.  This is to ensure that no duplicate content is generated.

    For the Random method, a number must be specified.  If no number is specified, 10 Posts will be generated.
  • Resume Index: By default, Page Generator Pro starts at a zero based index for keyword terms.  You can choose to start at a different index (if, for example, Page Generation did not fully complete), by setting Resume Index to restart on the nth iteration.
    The Resume Index option does not apply when using the Random method.

Attributes

Page Generator Pro: Generate: Attributes

Don’t see any Attributes?  They are only displayed if the Page, Post or Custom Post Type you’re generating supports Parent and/or Templates.
  • Parent: The Parent Page, Post or Custom Post Type to assign the Generated Pages to.  Accepts:
    • Page ID
      Page Generator Pro: Generate: Page ID
    • Page Slug (must be an existing Page)
    • Keyword (generated keyword must form a slug that matches an existing Page)
  • Template: The Page Template to use

Taxonomies

Page Generator Pro: Generate: Taxonomies

Don’t see any Taxonomies?  They are only displayed if the Post Type you’re generating supports Taxonomies.

For each Taxonomy for the Post Type, you can choose which Term(s) to assign to the generated Posts.

  • Hierarchical (e.g. Categories)
    • Use the checkboxes to select the existing Terms to assign to the generated content.
    • Use the Enter new taxonomy terms field to enter a comma separated list of new and/or existing Terms to assign to the generated content.
      • Terms can comprise of one or more Keywords.
      • Any Terms specified that do not exist will be created.
      • Any existing Terms specified that do exist will be used.
  • Non-Hierarchical (e.g. Tags)
    • Enter a comma separated list of Terms to assign to the generated content.
    • Keywords can be used here
    • Any tags added that do not exist will be created

Featured Image

You can optionally assign a Featured Image to the Posts, Pages or Custom Post Types you’ll be generating.  Choose an option from the Image Source dropdown

Page Generator Pro: Generate: Featured Image

Media Library Image

Page Generator Pro: Generate: Content: Featured Image: Media Library Image

When the Image Source is set to Media Library Image, the following parameters can be specified:

  • Title: Fetch an image at random from the WordPress Media Library where that image’s Title has a partial or full match to the given Title.
  • Caption: Fetch an image at random from the WordPress Media Library where that image’s Caption has a partial or full match to the given Caption.
  • Alt TextFetch an image at random from the WordPress Media Library where that image’s Alt Text has a partial or full match to the given Alt Text.
  • DescriptionFetch an image at random from the WordPress Media Library where that image’s Description has a partial or full match to the given Description.
  • Image IDs: Define a comma separated list of Image ID(s) to use as the Featured Image.  Where multiple IDs are specified, one will be chosen at random for each generated Page / Post.
  • Min. Image ID: Define the minimum Image ID to use as the Featured Image.  All WordPress Media Library Images with an ID equal to or greater to this value will be included when the Plugin chooses an image at random for each generated Page / Post.
  • Max. Image ID: Define the maximum Image ID to use as the Featured Image.  All WordPress Media Library Images with an ID equal to or less to this value will be included when the Plugin chooses an image at random for each generated Page / Post.

Where multiple parameters are specified, they are used in conjunction with one another.  This can be useful if you have a Media Library comprising of thousands of images, and you want to balance fetching an image at random with fetching an image that has some relevance to the content.

For example, if your Media Library contains 10 images with the title plumbing, and we set the Title field above to plumbing, Page Generator Pro would:

  • Find all images in your WordPress Media Library containing the word plumbing in the Title,
  • For each Page / Post that Page Generator Pro generates, the Plugin will chose one of those images at random to be used as the Featured Image.

Image URL

Page Generator Pro: Generate: Featured Image: Image URL

  • Value: URL to an image.
    • This can be a remote image, such as http://placehold.it/400×400.
    • If the image is remote, the generation process will import the image into the WordPress Media Library and use it as the Featured Image.
  • Alt Tag: The alt tag to assign to the image.
    • This can be a keyword.

Unsplash

Page Generator Pro: Generate Content: Featured Image: Unsplash

  • Value: URL to an image.
    • This can be a remote image, such as http://placehold.it/400×400.
    • If the image is remote, the generation process will import the image into the WordPress Media Library and use it as the Featured Image.
  • Alt Tag: The alt tag to assign to the image.
    • This can be a keyword.

Save

Page Generator Pro: Generate: Actions

Once you have completed all fields either:

  • Click the Save button, if available in the Actions meta box,
  • Click the Publish button, if using Gutenberg.
Before testing or generating content, we recommend reading the rest of the Documentation covering Shortcodes, Spintax, SEO Integration, Related Links and Methods.  These are all useful to help configure truly valuable, unique content before generating Pages, Posts and Custom Post Types.