Display Google Review

1. Displaying Google Reviews

The Pro version allows you to display Google Reviews for any of your managed locations directly on your pages, posts, or in widgets using a simple shortcode. This helps build trust and provides social proof.

Shortcode:

This shortcode will fetch and display the Google Reviews for a specified location.

Attributes:

Attribute Description Default Example
location_id (Required) The Post ID of the ‘Location’ CPT entry for which to display reviews. See the “Managing Locations” section on how to find this ID. N/A
limit The maximum number of reviews to display. The Google Places API typically returns up to 5 reviews. 5
min_rating Only display reviews with this star rating or higher. Accepts integers from 1 to 5. 0  (shows all)

How to Use:

  • Open a Page, Post, or Text Widget where you want to display the reviews.
  • If using the Gutenberg editor, add a “Shortcode” block.
  • Paste the shortcode, making sure to replace YOUR_LOCATION_ID  with the actual numeric Post ID of your desired location.

Example: Displaying up to 2 reviews with at least 4 stars for location ID 42:

Styling:

The shortcode outputs reviews with basic HTML structure and CSS classes (e.g., .lbsg-reviews-google-wrapper.lbsg-review-item ). You can add custom CSS to your theme or via the WordPress Customizer to further style the appearance.

Troubleshooting Tips:

  • No reviews showing?
    • Ensure the location_id  in the shortcode is correct and corresponds to a published ‘Location’ post.
    • Verify you have entered a valid Google Maps API Key in Business Schema > Settings .
    • Make sure a valid Google Place ID is saved for that specific Location post.
    • Reviews are cached for 12 hours. If you’ve recently made changes or fixed an API key, you might need to wait for the cache to clear or temporarily deactivate/reactivate the plugin to clear all its transients (for advanced users: or delete the specific transient).
  • Error message displayed? The message should indicate if the API key is missing, the Place ID is invalid, or if Google returned an error. Check the Pro Settings and the Place ID for the location.
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.