Generate: Shortcodes


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

When creating or editing a Group, the Visual Editor allows for several dynamic shortcodes to be inserted into the content.  These allow rich media elements, such as a Video, Map or Image, to be displayed.

Page Generator Pro also supports Visual Editors in the supported Page Builders.

Google Map

Click the Google Map icon in the Visual Editor toolbar:
Page Generator Pro: Shortcodes: Visual Editor Buttons

Enter the following information:
Page Generator Pro: Shortcodes: Google Maps Modal

  • Location: Enter the city and country (or keyword, if you have one that has keyword data comprising of cities and/or countries)
  • Zoom Level: Choose a zoom level for the Map.  A higher number means the map will be more zoomed in.
Shortcode not working? Ensure that your location is valid, and comprises of both a city / town and country.

A shortcode will then appear within the content:
[[page-generator-pro-google-map term="{service}" location="{city}, UK" height="250" zoom="14" maptype="roadmap"]]

Parameter Accepted Value Description
term string or keyword Optional service to plot on the map. For example, restaurant would display a marker showing the nearest restaurant to the given location.
location string or keyword The location to display the marker on the map.  This should include a country, for example {city}, UK
height integer The height of the map, in pixels.  Width is always 100%
zoom 0 to 21 The zoom level of the map.  A higher number means more detail
maptype roadmap
satellite
hybrid
terrain
The map type to display

Wikipedia Article

Click the Wikipedia icon in the Visual Editor toolbar:
Page Generator Pro: Shortcodes: Visual Editor Buttons

Enter the following information:
Page Generator Pro: Shortcodes: Wikipedia Modal

  • Term: Wikipedia title or keyword (e.g. Birmingham or {city}).
  • Language: Choose the language to return the content in.
Shortcode not working? Ensure that your term is a valid Wikipedia article.  If using a location, use a city only, or city + country.  Using a county may results in no results from Wikipedia, meaning no results output.

A shortcode will then appear within the content:
[[page-generator-pro-wikipedia term="{city}, UK" language="en"]]

Parameter Accepted Value Description
term string or keyword Wikipedia Article to display.
language string Two character language code

Yelp Business Listings

Click the Yelp icon in the Visual Editor toolbar:
Page Generator Pro: Shortcodes: Visual Editor Buttons

Enter the following information:
Page Generator Pro: Shortcodes: Yelp Modal

  • Term: Business term(s) to find matching results for (e.g. Restaurants)
  • Location: The city to display Yelp Business Listings for, or use a keyword (e.g. Birmingham, UK or {city}, UK).  This should include a country, for example {city}, UK
  • Number of Listings: The number of Yelp! Business Listings to display (e.g. 5)
Shortcode not working? Ensure that your location is valid, and comprises of both a city / town and country.

A shortcode will then appear within the content:
[[page-generator-pro-yelp term="{service}" location="{city}, UK" limit="3"]]

Parameter Accepted Value Description
term string or keyword Business term(s) to find matching results for (e.g. Restaurants)
location string or keyword The city to display Yelp Business Listings for, or use a keyword (e.g. Birmingham or {city}).  This should include a country, for example {city}, UK
limit 1 to 50 The number of Yelp! Business Listings to display.

 

YouTube Video

Click the YouTube icon in the Visual Editor toolbar:
Page Generator Pro: Shortcodes: Visual Editor Buttons

Enter the following information:
Page Generator Pro: Shortcodes: YouTube Modal

  • Term: Enter a search term.  For example, to display an image of a building, use building
  • Location (optional): Optionally specify where the video is based.  This is used in conjunction with the Term above, so if we wanted to show an image of a building in Birmingham, UK, use Birmingham, UK
Shortcode not working? Consider removing the location option to provide a broader resultset, from which a video can be used.

A shortcode will then appear within the content:
[[page-generator-pro-youtube term="{service}" location="{city}, UK"]]

Parameter Accepted Value Description
term string or keyword The search term(s) to use to search YouTube videos.
location string or keyword Optionally specify where the video is based.  This is used in conjunction with the Term above, so if we wanted to show an image of a building in Birmingham, UK, use Birmingham, UK

Related Links

The Related Links Shortcode displays a list of links to other generated content within the same Group.

Click the Related Links icon in the Visual Editor toolbar:

Enter the following information:

  • Number of Links: The maximum number of Links to display, linking to other Pages generated in this Group.
  • Order By: How to order the Related Links
  • Group: The group to displayed Related Links for.
Shortcode not working? Related Links will only be displayed if there are other generated Pages in this Group.   Therefore, it won’t display any Related Links when generating content using the Test button / method.

A shortcode will then appear within the content:
[[page-generator-pro-related-links limit="5"]]

Parameter Accepted Value Description
limit integer The maximum number of Links to display, linking to other Pages generated in this Group.

Shortcodes and Generation

When using any of the above dynamic shortcodes, the Generation process will take a few seconds or longer for each Page.  Page Generator Pro converts the shortcode into actual HTML output, querying the third party services (Google, Wikipedia, Yelp, YouTube etc) to insert the actual contents into each Page.

This ensures that the resulting Page does not dynamically query these third party services every time your site visitor views the generated Page. Doing so would result in the page taking a long time to load for every single visitor (and, in turn, affect your rankings on SERPs).

By taking a one time performance hit on slower page generation, the performance of your generated Pages for SERPs and all site visitors is dramatically increased.

The Related Links Shortcode is not converted into actual HTML output.  This ensures that, at the point the visitor views a generated Page, the links are displayed in real time and reflect any updates you may have made (e.g. deleting Pages, regenerating Groups etc)