Generate: Dynamic Elements: Yelp Business Listings

The Yelp! Business Listings shortcode inserts a grid of businesses matching the given term and location.

Adding: Classic Editor / TinyMCE

To add Yelp! Business Listings within the Classic Editor:

  • Click the Yelp! icon in the Visual Editor toolbar:
    Page Generator Pro: Shortcode Buttons

Adding: Gutenberg

To add Yelp! Business 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 Yelp into the Search for a block field, and click the Yelp option that appears within the Page Generator Pro section
    Page Generator Pro: Generate: Dynamic Elements: Yelp: Search Blocks
  • Follow the Configuration section below for each of the fields displayed in the right hand sidebar’s block panel:
    Page Generator Pro: Generate: Dynamic Elements: Yelp: Sidebar

Adding: Page Builders

To add Yelp! Business 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-yelp parameter="value" ...]

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
radius 0 to 20 The maximum radius area to search.
image 0,1 Whether to show or hide the business logo / image with each listing. 0 = hide, 1 = show.
rating 0,1 Whether to show or hide the business rating with each listing. 0 = hide, 1 = show.
categories 0,1 Whether to show or hide the business categories with each listing. 0 = hide, 1 = show.
phone 0,1 Whether to show or hide the business phone number with each listing. 0 = hide, 1 = show.
address 0,1 Whether to show or hide the business address with each listing. 0 = hide, 1 = show.
limit 1 to 50 The number of Yelp! Business Listings to display.

Configuration: Search Parameters

Page Generator Pro: Generate: Shortcodes: Yelp: Search: TinyMCE 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
  • Radius: The maximum radius, in miles, from the Location to include Business Listings for.
    • This cannot exceed 20 miles.
  • Minimum Rating: The minimum rating a business listing must have to be displayed.
    • As this is not supported by Yelp, using this option may result in fewer results than the Number of Listings option specified.  This is because the maximum number of Listings (50) are fetched, and then each Listing is checked to see if it meets or exceeds the Minimum Rating.  In some cases, this may result in fewer or no applicable Listings being displayed.
  • Language: The language to output results in.  Defaults to your WordPress site language
  • Price: Only display listings matching or exceeding the given Price Level
  • Number of Listings: The number of Yelp! Business Listings to display (e.g. 5)
  • Sort Listings: How to sort listings

Configuration: Output

Page Generator Pro: Generate: Shortcodes: Yelp: Output: TinyMCE Modal

  • Image: Whether to show or hide the business logo / image with each listing
  • Rating: Whether to show or hide the business rating with each listing
  • Categories: Whether to show or hide the business categories with each listing
  • Phone Number: Whether to show or hide the business phone number with each listing
  • Address: Whether to show or hide the business address with each listing
Shortcode not working? Ensure that your location is valid, and comprises of both a city / town and country.
The Yelp API does not return businesses without any reviews.  See Docs.