Page Generator Pro

from $99/yr

Documentation

Generate: Dynamic Elements: Google Places

Documentation »

Page Generator Pro » Generate: Dynamic Elements: Google Places
Info icon

The Google Places Dynamic Element is available in Page Generator Pro 5.2.8 and higher, available Thursday October 2nd 2025 23:59 UTC

The Google Places Dynamic Element inserts a list or grid of places (such as businesses) listed on Google matching the given term and location.

Setup

Info icon

Failure to follow all steps in this section will result in incorrect working functionality.

Before using Google Places in your Content Group, you’ll need to:

Adding: Classic Editor / TinyMCE

To add Google Places within the Classic Editor:

  • Ensure that you’re using the Visual Editor by clicking the Visual tab:
    Page Generator Pro: Dynamic Elements: TinyMCE: Visual Editor Tab
  • Click the Google Places icon in the Visual Editor toolbar:
    Page Generator Pro: Dynamic Elements: Google Places: Visual Editor Button

Adding: Classic Editor / TinyMCE: Text Editor

If you’re using the Text editor instead of the TinyMCE Visual Editor above:
Page Generator Pro: Dynamic Elements: TinyMCE: Text Editor Tab

  • Click the Google Places button in the toolbar:
    Page Generator Pro: Dynamic Elements: Google Places: Text Editor Button

Adding: Gutenberg

To add Google Places Listings within Gutenberg:

  • Click the plus icon between two existing blocks, or towards the top left corner of the Gutenberg editor
    Page Generator Pro: Generate: Dynamic Elements: Gutenberg: Add Block
  • Start typing Google Places into the Search for a block field, and click the Google Places option that appears within the Page Generator Pro section
    Page Generator Pro: Dynamic Elements: Google Places: Gutenberg Search
  • Follow the Configuration section below for each of the fields displayed in the right hand sidebar’s block panel:
    Page Generator Pro: Dynamic Elements: Google Places: Gutenberg Configuration

Adding: Page Builders

To add Google Places listings within any Page Builder that supports a Text Editor widget/module using the Classic Editor (sometimes known as TinyMCE), refer to the Classic Editor instructions above.

Refer to the Dynamic Elements Documentation for details specific to your Page Builder.

If your Page Builder does not provide a Text Editor widget/block that uses the Classic Editor, you can still use Dynamic Elements.  However, you’ll need to manually build the shortcode, inserting it into your Page Builder’s content – for example:

[page-generator-pro-google-places parameter="value" ...]

ParameterAccepted ValueDescription
termstring or keywordSearch term(s) to find matching results for (e.g. Restaurants)
locationstring or keywordThe city to display Google Places listings for, or use a keyword (e.g. Birmingham or {city}).  This should include a country, for example {city}, UK
latitudestringWhen a radius is specified, the center point’s latitude must be specified.
longitudestringWhen a radius is specified, the center point’s longitude must be specified.
radius0 to 500The maximum radius area to search.
minimum_rating0 to 4.5The minimum rating a place must have to be displayed.
languagestringThe language to output results in.  This must match a Code listed at https://developers.google.com/maps/faq#languagesupport
limit1 to 20The maximum number of places to return.
output_typelist,tableThe output type for the Place listings:
list: Outputs a list or grid of Google Places Listings
table: Outputs a table of Google Places Listings
columns1 to 4When Output Type = list: The number of columns to display Place Listings in.  Any number from 1 to 4 is accepted
link0 or 1If enabled (1), clicking the Place Name or Rating will open a new browser tab/window showing the Place’s web site
display_orderstringThe order to display each Place’ attributes. This is a comma separated list accepting the following values:

formattedAddress: Address,
adrFormatAddress: Address with Country Code,
googleMapsUri: Google Maps URI,
internationalPhoneNumber: International Phone Number,
nationalPhoneNumber: National Phone Number,
priceLevel: Price Level,
displayName: Place Name,
priceRange: Price Range,
primaryTypeDisplayName: Place Type,
rating: Rating,
regularOpeningHours: Regular Opening Hours,
reviewSummary: Review Summary,
websiteUri: Website URI,

For example:
displayName,rating,nationalPhoneNumber: Each Place listing will display content in the order Display Name, Rating and Phone Number

If blank or not defined, the Display Name and Rating will display.
display_alignmentstringWhen Output Type = list: The alignment of each individual Place’s attributes

Configuration: Search Parameters

Page Generator Pro: Dynamic Elements: Google Places: Search
  • Term: Search term(s) to find matching results for (e.g. Restaurants)
  • Location: The city to display Place Listings for, or use a keyword (e.g. Birmingham, UK or {city}, UK).  This should include a country, for example {city}, UK
  • Latitude
  • Longitude
  • Radius: The maximum radius, in miles, from the Location to include Place Listings for.
  • Minimum Rating: The minimum rating a Place must have to be displayed.
  • Language: The language to output results in.
  • Number of Places: The number of Place Listings to display (e.g. 5)

Configuration: Output

Page Generator Pro: Dynamic Elements: Google Places: Output
  • Output Type: The type of listings that you want to output:
    • Grid/List: Displays a grid or list of Place listings
    • Table: Displays a table of Place listings
  • Number of Columns: The number of columns to display Place listings in.  Not applicable when Output Type = Table.
  • Link: If enabled, clicking the Place Name or Rating will open a new browser tab/window showing the Place’s web site.
  • Display Order: Defines the content display order for each Place
    • Click the field to see the available options
      Page Generator Pro: Dynamic Elements: Google Places: Display Order Search
    • Click each option that you want to display
    • Drag and drop each option to change the display order
      Page Generator Pro: Dynamic Elements: Google Places: Display Order
  • Display Alignment: Defines the alignment of content within each individual Place:
    • Vertical: Each Place’ attributes are output in the Display Order from top to bottom.
    • Horizontal: For each Place, the first Display Order attribute will be displayed, with the remaining Display Order attributes displayed to the right.

Configuration: Errors

Page Generator Pro: Dynamic Elements: Errors

Ignore Errors

If enabled, an error returned from the Dynamic Element will result in blank content output, instead of an error preventing generation of the entire Page / Post / Custom Post Type.

This setting may be useful if you don’t require the Dynamic Element to always return content output.

This setting is ignored when using Test mode. If the Dynamic Element produces an error, it will always be reported in Test mode, to assist with debugging.


Published

Last Updated