Trustpilot Review Engine
Fetches reviews from Trustpilot JSON-LD and stores them in the DB.
by Osama Ali · github.com/osama-ali-software-engineer/trustpilot_review_engine · website
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/osama-ali-software-engineer/trustpilot_review_engine/archive/refs/heads/main.zipTrustpilot Review Engine - User Guide
Installation
- Upload the
trustpilot-review-enginefolder to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
Setup & Configuration
Go to the Review Engine -> Settings menu in your dashboard.
1. Fetching Reviews
- Business Profile URL: Enter your full Trustpilot URL (e.g.,
https://www.trustpilot.com/review/example.com). - Fetch Your Reviews: Click this button to manually import reviews immediately.
- Enable Daily Auto-Sync: Check this box to have the system automatically check for new reviews once every day.
2. Business Header Setup
To display a professional header with your logo:
- In Settings, look for the "Business Logo" section.
- Click "Upload Logo" and select your company logo from the media library.
- Click "Save Logo".
3. Displaying Reviews
Use the [trustpilot_reviews] shortcode on any page or post.
Available Shortcode Options
You can customize the display using the following attributes:
- count: Number of reviews to show initially. (Default: 9)
- style: Layout style. Options:
gridormasonry. (Default: grid) - header: Show the business header?
trueorfalse. (Default: false) - claimed: Show the "Claimed profile" badge in the header?
trueorfalse. (Default: true) - title: Add a section title above the reviews.
Example Shortcodes
Standard Grid (Best for most sites):
[trustpilot_reviews count="6" header="true"]
Masonry Layout (Best for reviews of different lengths):
[trustpilot_reviews style="masonry" count="15" header="true"]
Simple List without Header:
[trustpilot_reviews count="3"]
Features
- Auto-Sync: Keeps your reviews up to date automatically.
- Duplicate Protection: Ensures the same review isn't imported twice.
- Dynamic Avatars: If a user has no photo, a colorful initial avatar is generated automatically.
- Responsive Design: Works perfectly on Mobile, Tablet, and Desktop.
- Load More: Users can click "Show more reviews" to load older reviews without refreshing the page.
Troubleshooting
Reviews not showing up? Try clicking "Fetch Your Reviews" in the settings page to manually trigger an import.
Logo not showing? Make sure you clicked "Save Logo" after uploading it in the settings.
Masonry layout looks broken? Ensure your site is loading jQuery. The plugin uses WordPress's built-in Masonry library.