Google Reviews Importer
WordPress plugin to import Google reviews as testimonials to be used with ACF
by Reflect + Refine · github.com/mrrcp/google-reviews-importer
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mrrcp/google-reviews-importer/archive/refs/heads/main.zipA WordPress plugin that automatically imports Google reviews as testimonials, designed specifically to work with Advanced Custom Fields and Bricks Builder.
Author: Richard Peirce (https://rnr.design)
Features
- Automatically imports Google reviews on a monthly schedule
- Creates custom testimonial posts with structured review data
- Admin dashboard widget to monitor plugin health
- Import history tracking with detailed logs
- GitHub integration for automatic health checks
- Seamless integration with Bricks Builder
- Compatible with Advanced Custom Fields (required)
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Advanced Custom Fields plugin (Free or Pro)
- Google Places API key with proper permissions
- Bricks Builder (optional, but fully supported)
Installation
- Upload the
google-reviews-importerfolder to the/wp-content/plugins/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to Settings > Google Reviews to configure your API key and Place ID
- Make sure Advanced Custom Fields is installed and activated
- The plugin will automatically check for the required ACF fields
ACF Fields Setup
The plugin requires specific ACF fields for the testimonial post type. You have two options for setting these up:
Option 1: Automatic Setup
The plugin includes ACF field configurations that can be automatically loaded. If the required fields are missing, you'll see a notification in the plugin settings.
Option 2: Manual ACF Setup
If you prefer to set up the fields manually, create a new ACF Field Group with these fields:
-
Testimonial Title (Text)
- Field Name:
testimonial_title - Required: Yes
- Field Name:
-
Testimonial Summary (Textarea)
- Field Name:
testimonial_summary - Required: No
- Field Name:
-
Testimonial (Textarea)
- Field Name:
testimonial - Required: Yes
- Field Name:
-
Date (Date Picker)
- Field Name:
testimonial_date - Required: No
- Field Name:
-
Rating (Select)
- Field Name:
testimonial_rating - Choices: 1-5 stars
- Field Name:
-
Source (Select)
- Field Name:
testimonial_source - Default Value: Google
- Field Name:
Set the location rule to show this field group when Post Type is equal to "testimonial".
Bricks Builder Integration
This plugin works seamlessly with Bricks Builder:
- Dynamic Data - Access all review fields through Bricks' dynamic data system
- Custom Templates - Create custom templates for displaying testimonials
- Query Loop - Use query loops to display multiple reviews with filtering options
- Star Ratings - Easily display star ratings using the rating field
Example Bricks Builder setup:
- Create a template for the testimonial post type
- Add a query loop to display multiple testimonials
- Use dynamic data to display reviewer name, date, rating, and review text
- Filter by rating or date using Bricks query filters
GitHub Monitoring Setup (Optional)
To enable automated health checks for the plugin:
- Fork this repository to your own GitHub account
- Go to your forked repository's Settings > Secrets and variables > Actions
- Add the following secrets:
GOOGLE_API_KEY: Your Google API key with Places API enabledGOOGLE_PLACE_ID: Your business's Google Place IDMAIL_SERVER: Your SMTP server (e.g., smtp.gmail.com)MAIL_PORT: SMTP port (e.g., 587)MAIL_USERNAME: Email usernameMAIL_PASSWORD: Email password or app passwordNOTIFICATION_EMAIL: Email where you want to receive alerts
These credentials will be used only in your private fork for monitoring your specific installation.
Troubleshooting
If you encounter issues:
- ACF Fields Not Working: Ensure ACF is active and field names match what the plugin expects
- No Reviews Found: Verify your Place ID is correct and has reviews
- API Connection Errors: Check that your API key has the Places API enabled
- CRON Not Running: WordPress CRON requires site visits to trigger - consider setting up a server cron
Customization
You can customize:
- The frequency of imports by modifying the CRON schedule
- The post type used for testimonials (defaults to "testimonial")
- The ACF field names and types
License
This plugin is licensed under the GPL v2 or later.
Credits
Developed by Richard Peirce (https://rnr.design)