Better Text Widget adds a small improvement to text widgets in WordPress. It adds a…
Google Places is an extension of Google Maps and features user reviews about just about any location you can think of. If you’re building a site for a business that is listed on Google Places, you might want to show off their reviews. Google Places Reviews lets you do that with just a few steps.
What’s it Do?
Google Places Reviews adds a widget and shortcode to your WordPress install that allows you to pull in reviews and list them on your site automatically. All you have to do is enter in the location of your business, and reviews will be pulled in and displayed in one of several themes. New reviews will be pulled in whenever they are posted, so that your site remains up to date without you having to manually update it. You also have control over exactly what kind of reviews are shown, for instance only reviews above a five star rating, and the number of reviews. It’s simple to use, and can be added to sidebars with a widget or posts and pages with a shortcode.
How’s it Work?
After you install and activate the plugin, the first thing you have to do is set up an application at Google with the Google Places API set up. This can be done using the Google API Console. When you log in, create a new project, then navigate to the “API’s” section. From there, make sure you’ve switched the “Places API” to “on” and then go to “API Credentials” to copy your API key.
Then, you can visit Settings -> Google Places and paste this key into the text field on the main options page. This will connect your WordPress site to Google Places. There is also an “Advanced Options” tab which lets you switch off the external CSS for the plugin, if you want to style the places widget yourself.
There are two ways to actually add reviews to your site. The first is by going to Appearance -> Widgets and dragging the “Google Places” widget into any sidebar. You can give the Widget a title, then find the location you want to pull reviews for by using the “Location Lookup” text field. Just start typing the name of the business or the address of a business’ location and select the proper one from the drop-down. The plugin will automatically fill in the “Location Reference ID” (a long and unreadable string) for you.
From there, all you have to do is customize the widget. The first section is “Review Options” which allows you to specify how many reviews to show at a time (up to 5), and the minimum rating reviews should have, meaning you can limit them to something like 3 stars and up. You can also choose to “Expand/collapse Review Content”. Some reviews may be very long, and Google Places Reviews can intelligently trim this down so that only a short excerpt from a review is shown.
The next section is “Display Options,” where you can choose a theme. There are three themes to chose from, which can be seen in the plugin’s documentation. Themes have a light and dark version so you can match the look of your site. “Display Options” also lets you have fine-grained control over what exactly is shown in each review, such as whether or not to include the rating text, Google’s image, and Business information. In “Advanced Options” you can select from a few more options, such as how often to pull in new reviews, whether or not to hide the title, and whether links should be nofollow and open in a new page. Most of these can be left at their defaults. After this is set up, you’ll see your new list of reviews appear in your sidebar, updated frequently with new reviews.
You can also use a shortcode to add this list. The shortcode has the same parameters as your widget, but can be added to posts and pages. In the WordPress post editor, simply add in the google-places-reviews shortcode. The only required field is the location ID. Since there’s not really a simple way to find this, the best way to get your location ID is to actually add a widget and use the “Location Lookup” from the last step to get it, then copy and paste it into your shortcode.
You can also use shortcode parameters to customize the output of the reviews. Just about any option from the widget has a comparable parameter in the plugin’s shortcode. For instance, if I wanted to add a title to my reviews, align the widget to the left so that text wraps around it, use the Minimal light theme, and only show reviews that are three stars and up, my shortcode would look like this:
[google-places-reviews title="My Reviews" align="left" widget_style="Minimal Light" review_filter="3" id="CnRwAAAApzIC8DyGPISwhR0MUtzWFtofNYNgLxLJmxt_1jWhaRHa-FDgiSsB7eaTVo_IgzCfxSSmG853MDU1spPM5kHT0EQ-kaFc1lmuMGj8i5YXTFUtpy4hoR4nnsXPJGkz3zEcszWpRR5oIaTJSIy9Gy0RQxIQfPnmMyxtjhhSlwutXEBqsBoUV6Ebm2f4mYPNTyf9_5LfnJVSH-Q"]
There is a full list of parameters that you can take advantage of listed in the plugin’s documentation, but you can customize just about any part of it’s output. This will output your list of reviews, either as a block element or aligned to the left and right, depending on how you style it, and works pretty much the same as how your widget works.
As a final note, you can also use the WordPress do_shortcode function if you want to add your list of reviews to a template file. That would end up looking like this:
<?php echo do_shortcode('[google-places-reviews title="My Reviews" id="CnRnAAAA7ufAcJT8Zpu8Fqi1GeYR9wleo5aQhHbOlPAKR0p0i75y5JO2aV_QQnBuISR0R_jN2_J8fg-tNe01SRVGqx_Vj8TzYrF74pNqoQGdRTkJ37ohFfI6MBp86YCcoQ0qJw7wCBBPUoOMKH-eVvf0auRP0hIQRB-7qXKSGcCR7ecukBf3HBoUUUtTXBwQi_F0oUddxuBEw7W3o58"]'); ?>
And just like that, you can use the Google Places API to your advantage to highlight the best reviews for all your users.
Costs, Caveats, Etc.
Google Places Reviews has gone through several iterations, and is a solid and well maintained plugin. There is a free version with a few less features (no filtering of reviews, collapsing of long reviews or priority support), in addition to the pro version. It also has some pretty great documentation if you are looking for help. Or, you can visit the support forums if you have a specific question.Download Google Places Reviews Pro Now!