Generate: Shortcodes: Yelp Business Listings

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

To add Yelp! Business Listings:

  • Click the Yelp icon in the Visual Editor toolbar:
    Page Generator Pro: Generate: Shortcodes: TinyMCE Toolbar Button
  • Enter the following information:
    Page Generator Pro: Generate: Shortcodes: Yelp

    • 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
    • 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.

A shortcode will then appear within the content:
[page-generator-pro-yelp term="{service}" location="{city}, UK" image="1" rating="1" categories="1" phone="1" address="1" 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
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.