How to use it
- In Google Cloud, enable Places API (New) and create an API key. Restrict the key to that API.
- In Bricks > Kiln, turn on Query loop: Google reviews, paste the key and a Default Place ID. The link under the field opens Google's Place ID finder.
- Select a Container, Block or Div and turn on its query loop.
- In the Query editor, choose the query type Google reviews (Kiln).
- Under the Query control, set what to show:
- Place ID: leave it empty to use the default. Dynamic data is allowed, so a custom field can hold a
different place on each page. Every place a loop names must be the default or listed under Other Place
IDs; any other ID shows nothing. Text that isn't a Place ID at all (10 to 300 letters, digits,
-and_) counts as empty, so the loop uses the default place. - More places: for a business with several locations, one Place ID per line. Their reviews merge into this loop, up to 10 places in all, counting the Place ID above. Each must be listed under Other Place IDs; any other is skipped.
- Number: how many to show. Empty shows them all: Google returns at most five reviews per place, so one place shows up to 5 and three places up to 15.
- Minimum stars: from 1 to 5.
- Order: As Google shows them (the default), Newest first or Highest rated first (equal stars, newest first).
- Newer than (months): hide older reviews. With five reviews per place, a short window can leave few.
- Minimum words: hide short reviews. 1 hides reviews that are stars only, with no text. Chinese and Japanese characters count one word each; Thai counts by its spaces.
- Review text: In the page's language (translated by Google) (the default) or As the reviewer wrote it.
- Place ID: leave it empty to use the default. Dynamic data is allowed, so a custom field can hold a
different place on each page. Every place a loop names must be the default or listed under Other Place
IDs; any other ID shows nothing. Text that isn't a Place ID at all (10 to 300 letters, digits,
- Inside the loop, add the tags below from the dynamic data picker (group Kiln) or type them.
Review tags (inside the loop)
{kiln_review_author}: the reviewer's name.{kiln_review_author_url}: the reviewer's Google profile.{kiln_review_author_photo}: the reviewer's photo. Use it as an image source, or as a URL in text.{kiln_review_rating}: the rating as a number from 1 to 5.{kiln_review_stars}: the rating as stars, for example ★★★★☆. In text it carries a label for screen readers ("4 out of 5 stars").{kiln_review_text}: the review. Add a word count to shorten it:{kiln_review_text:30}.{kiln_review_time}: Google's relative time, for example "2 months ago".{kiln_review_date}: the date in your site's date format. Add a PHP date format to change it:{kiln_review_date:j M Y}.{kiln_review_url}: the review on Google Maps.{kiln_review_initials}: the reviewer's initials, for example "AL". Put it in a circle where the photo would be, for reviewers without one.{kiln_review_translated}: "Translated by Google" when the text shown was translated, else nothing. Google asks sites to say when a review was translated.{kiln_review_visit_date}: the month and year of the visit, for example "September 2026". Google sends them for places in France and French territories, and asks sites to show them there. Add a PHP date format to change how they print.{kiln_review_place}and{kiln_review_place_id}: the name and Place ID of the place the review belongs to, for a loop of several places ("Kiln Studio, Toronto").
Place tags (anywhere on the page)
{kiln_place_rating}: the average rating, for example 4.8, in your site's number format.{kiln_place_rating:raw}always prints a dot-decimal number.{kiln_place_reviews_count}: the total number of reviews on Google.{kiln_place_name}: the place's name.{kiln_place_maps_url}: the place on Google Maps.{kiln_place_stars}: the average as stars, rounded to whole stars. The screen-reader label keeps the exact rating ("4.6 out of 5 stars").{kiln_place_reviews_url}: all the place's reviews on Google Maps, for a "Read all reviews" link.{kiln_place_write_review_url}: Google's "write a review" page for the place.{kiln_place_attribution}: the words "Google Maps", marked so browsers never translate them. Google requires this credit (or its logo) next to its content.
Place tags use the default place. Inside a Google reviews loop, a place tag without a Place ID reads the place of
the review it sits in (before Kiln 1.3 it read the default place). Add a Place ID to use another one:
{kiln_place_rating:ChIJ…}. List that ID
under Other Place IDs in the settings first. Combine it with :raw for another place's plain rating:
{kiln_place_rating:ChIJ…:raw}.
Where it appears in Bricks
- Query editor: the query type Google reviews (Kiln).
- Container, Block, Div, Content tab, directly under the Query control: the fields above. They show while that query type is chosen.
- Dynamic data picker: the tags, in the Kiln group, labelled "Google review: author name", "Google place: rating" and so on.
Styled stars
The star tags print text characters, which take one color. For icon stars with their own colors, add Bricks'
Rating element inside the loop and set its Rating field to {kiln_review_rating}. Outside the loop, use
{kiln_place_rating:raw}, which prints 4.6 with a dot whatever your site's number format. The Rating element
brings icons, full and empty colors, size and gap.
How it works with Bricks
Bricks' own API query type (since 2.1) can call the Places API too, with your key in a header. Kiln adds several places in one loop, filters and ordering, place tags anywhere on the page, the Google attribution and a pause after Google fails.
- You choose how Kiln treats Google's answer (Settings, below). Google's Maps Platform terms don't allow
storing reviews, so Kiln won't decide for you, and the loop shows nothing until you choose:
- Store it for 6, 12 or 24 hours: Kiln asks Google once per place and language in that window, and page views in between cost nothing. While one page view refreshes the stored answer, page views at the same moment render without reviews, and Kiln tells page caches not to keep them. This goes beyond Google's terms; the risk, such as Google suspending the key, is yours.
- Ask Google on every page view: within the terms. Each page view costs one request per place and language it shows (a loop of three places costs three), billed to your key and shared by every loop and tag on that page. Editing in the builder costs requests too, one per place. The page waits for Google's answer, up to 5 seconds per place if Google is slow; a loop of several places stops asking after 8 seconds and shows the places that answered. A page cache plugin that stores whole pages stores the reviews too.
- If Google answers with an error, or your quota runs out, the loop is empty and the place tags print nothing. After a failed request Kiln waits 10 minutes before asking again.
- Reviews come in the site's language when Google has a translation. On a multilingual site Kiln asks for and stores
each language separately. The
kiln/google_reviews/languagefilter changes the language sent. - Review text is plain text. Braces and square brackets in it are encoded, so a reviewer cannot place a Bricks tag or a shortcode in a review and have it run, even in a Rich Text element.
- Kiln asks Google only about the places you listed. A Place ID that reaches a page any other way, for example from a search term or a URL parameter, costs no request and shows nothing. In a loop's Place ID, text that isn't a Place ID at all falls back to the default place.
- Kiln runs profile links through WordPress' URL check and drops any that is not http or https.
Limits
- Google's API returns at most five reviews per place, chosen by Google. Kiln cannot list every review.
- The review tags work only inside a Kiln Google reviews loop. Elsewhere they print nothing.
- With no key, or a Place ID Google does not know, the loop is empty and the place tags print nothing.
- Google's policies for Places content apply to your site. In short: credit "Google Maps" with
{kiln_place_attribution}or Google's logo, and style the words in Roboto (or the default font), weight 400, 12 to 16 px, in white, #1F1F1F or #5E5E5E. Show each reviewer's photo, name and profile link where space allows. Say how the reviews are ordered and filtered (for example "Newest reviews with 4 stars or more"). Link each review to Google Maps with{kiln_review_url}. Read the current Places API policies before you launch. - Google bills the requests to your Cloud account. Set a budget alert in Google Cloud.
Settings
Bricks > Kiln > Query loop: Google reviews:
- Places API key: Kiln keeps it on your server and never prints it in a page. The field stays empty after saving. Paste a new key to replace it, or tick Remove when I save.
- Default Place ID: the place every loop and place tag uses unless it names another.
- Other Place IDs: one per line, up to 50. Loops and tags may name these places too.
- Google's answer: Store it, and ask again after 6, 12 or 24 hours, or Ask Google on every page view. No default: choose one. Switching away from storing, or changing the hours, deletes what Kiln stored.
- After a failed request, the settings show when it happened and Google's answer code (400 or 403: check the key; 429: the quota ran out).
Requirements
Bricks 2.4 or newer, and a Google Cloud project with Places API (New) enabled and billing set up.