1. Home
  2. Trustie Pro
  3. Forms & Display
  4. Shortcodes Reference

Shortcodes Reference

Trustie Pro extends the Free shortcodes with additional parameters and adds several new shortcodes for Pro-only features. This is your complete reference for every shortcode available in Trustie Pro.

For the basics of how shortcodes work (where to put them, how to use page builders, etc.), see the Trustie Free shortcodes guide — everything there still applies.

Card Layout (Grid vs Masonry)

Every shortcode that renders review or testimonial cards follows your global Card Layout setting at Trustie > Settings > Layout. Pick Grid for equal-height cards or Masonry for variable-height cards that pack tight to their content — and it applies everywhere: product-page reviews, the reviews page, Google reviews, and testimonials.

If you want a specific shortcode instance to use a different layout than your global setting, add grid_layout="grid" or grid_layout="masonry" (or layout="..." for the [trustie_testimonials] shortcode) as an attribute. The shortcode attribute always wins over the global setting.

Product Reviews

[trustie_reviews] — Display Product Reviews

Shows reviews for a specific product (or all products) with ratings, text, photos, and author information.

[trustie_reviews product_id="42"]

All parameters:

ParameterTypeDefaultDescription
product_idintCurrent productWhich product’s reviews to show. Auto-detected on product pages.
typestringproductReview type: product or site
limitintFrom Layout settingsReviews per page (configurable in Settings > Layout)
columnsintFrom Layout settingsGrid columns (configurable in Settings > Layout)
grid_layoutstringFrom Card Layout settinggrid or masonry. Overrides the global Card Layout setting on this instance.
show_photosbooltrueDisplay review photos
show_responsebooltrueShow admin replies to reviews
show_filtersbooltrueShow the pill-style filter and sort controls
min_ratingint0Only show reviews at or above this star rating
verified_onlyboolfalseOnly show verified purchase reviews
orderbystringdateSort field: date
orderstringDESCSort direction: DESC (newest first) or ASC (oldest first)

Filter & Sort Controls

When show_filters is enabled (default), visitors see pill-style filter and sort buttons styled with your Brand Hub Designer settings:

  • Sort pills: Newest / Oldest toggle
  • Filters toggle: Expands a collapsible panel with:

Star rating pills (1–5): Click to filter by exact star rating
Custom field pills: Any fields marked as “filterable” or “demographic” in the Form Builder appear as additional filter groups with their options as pills

  • Active filter tags: Show which filters are active, with one-click removal

When filters return no matching reviews, a “No reviews match your filter” message is displayed.

Load More

Reviews use a “Load More” button for pagination. The number of reviews loaded per batch is controlled by the limit parameter (or the Layout settings default). When there are no more reviews to load, the button hides automatically.

Note: On product pages, the product name is not shown on review cards (it would be redundant).

Examples:

Reviews with filters enabled (default):

[trustie_reviews product_id="42"]

Two-column grid, 6 per page:

[trustie_reviews product_id="42" columns="2" limit="6"]

Verified purchases only, no filters:

[trustie_reviews product_id="42" verified_only="true" show_filters="false"]

> Where’s the review form? [trustie_reviews] displays the review list and summary. To show the review submission form, use [trustie_review_form] as a separate shortcode. This gives you full control over where the form appears — below the reviews, in a sidebar, or on its own page.

[trustie_rating] — Display Star Rating Summary

Shows the average star rating for a product with optional breakdown bars.

[trustie_rating product_id="42"]
ParameterTypeDefaultDescription
product_idintCurrent productWhich product
show_countbooltrueShow “(42 reviews)” after the stars
linkbooltrueLink stars to the reviews section
show_breakdownboolfalseShow rating distribution bars (5-star: 60%, 4-star: 25%, etc.)
stylestringcompactDisplay style: compact (inline) or expanded (card with breakdown)

Examples:

Expanded card with breakdown:

[trustie_rating product_id="42" style="expanded" show_breakdown="true"]

Compact inline rating:

[trustie_rating product_id="42" show_count="false" link="false"]

[trustie_review_form] — Review Submission Form

Display the review form on its own, without listing existing reviews.

[trustie_review_form product_id="42"]
ParameterTypeDefaultDescription
product_idintRequiredWhich product this review is for

The form automatically uses the correct custom form (from the Form Builder) based on the product’s category and form assignment rules. If no custom form exists, the default review form is shown.

[trustie_review_summary] — Aggregate Review Statistics

Display aggregate statistics across all products (or a specific product) — total reviews, average rating, rating distribution.

[trustie_review_summary]
ParameterTypeDefaultDescription
product_idintAll productsLimit stats to a specific product
show_totalbooltrueShow total review count
show_averagebooltrueShow average star rating
show_breakdownbooltrueShow rating distribution bars
show_chartboolfalseShow a visual bar chart of ratings

Examples:

Store-wide review statistics:

[trustie_review_summary]

Stats for a specific product:

[trustie_review_summary product_id="42"]

Just the average and count, no breakdown:

[trustie_review_summary show_breakdown="false"]

[trustie_star_summary] — Star Rating Breakdown

A focused shortcode that shows just the star rating distribution — how many 5-star, 4-star, 3-star (etc.) reviews a product has, displayed as horizontal bars.

[trustie_star_summary product_id="42"]
ParameterTypeDefaultDescription
product_idintCurrent productWhich product
show_countbooltrueShow the number of reviews per star level
show_percentagebooltrueShow percentage per star level
clickablebooltrueClicking a bar filters reviews to that star level

Examples:

Breakdown with clickable filtering:

[trustie_star_summary product_id="42" clickable="true"]

Simple visual breakdown:

[trustie_star_summary product_id="42" show_percentage="false"]

[trustie_store_reviews] — Store-Level Reviews

Display reviews about your store as a whole, rather than specific products. These are submitted through site-level review forms (configured in the Form Builder with “Site Reviews Only” assignment).

[trustie_store_reviews]
ParameterTypeDefaultDescription
limitint10Number of reviews to display
columnsint2Grid columns (1–4)
layoutstringgridDisplay layout: grid, list, or masonry
show_formboolfalseInclude the store review submission form
show_summarybooltrueShow aggregate rating summary
show_photosbooltrueDisplay review photos

Examples:

Store reviews with submission form:

[trustie_store_reviews show_form="true"]

Three-column masonry layout:

[trustie_store_reviews layout="masonry" columns="3" limit="12"]

[trustie_reviews_page] — Full Reviews Page

The all-in-one shortcode for a dedicated reviews page. Includes product reviews, store reviews, and testimonials in a tabbed interface with pagination.

[trustie_reviews_page]
ParameterTypeDefaultDescription
per_pageint12Reviews per page before pagination
columnsint3Grid columns (1–4)
grid_layoutstringFrom Card Layout settinggrid or masonry. Overrides the global Card Layout on this instance.
tabsstringallWhich tabs to show: all, product, store, testimonials — or a comma-separated list
default_tabstringproductWhich tab is active by default

Examples:

Full reviews page with all tabs:

[trustie_reviews_page]

Only product and store reviews (no testimonials tab):

[trustie_reviews_page tabs="product,store"]

Two-column layout with more reviews per page:

[trustie_reviews_page columns="2" per_page="20"]

Setting it up as your main reviews page:

  1. Create a new page (e.g. “Reviews”)
  2. Add the shortcode as the page content
  3. Go to Trustie > Settings > Layout and select this page as your designated reviews page
  4. The floating widget’s “See All Reviews” link will now point here

Google Reviews

[trustie_google_reviews] — Display Google Business Reviews

Show reviews from your Google Business Profile with full JSON-LD schema markup for SEO.

[trustie_google_reviews]

This shortcode displays your Google business name, overall rating, individual reviews, and a “View on Google” link. It also outputs LocalBusiness + AggregateRating schema that Google can use for rich results in search.

Before this works, you need your Google Place ID and API key configured. See the Google Reviews guide.

Note: Google’s API returns a maximum of 5 individual reviews, though the aggregate rating reflects all your Google reviews.

Testimonials

[trustie_testimonials] — Display Testimonials

Show approved testimonials in various layouts. Works without WooCommerce.

[trustie_testimonials]
ParameterTypeDefaultDescription
limitint10How many testimonials to show
columnsint2Grid columns (1–4)
layoutstringFrom Card Layout settinggrid, masonry, or list. Defaults to your global Card Layout setting; overrides it on this instance. list is a testimonial-specific stacked layout with no columns.
show_ratingbooltrueShow star rating
show_photobooltrueShow customer photo

Examples:

Three-column masonry grid:

[trustie_testimonials layout="masonry" columns="3" limit="9"]

Simple list without ratings:

[trustie_testimonials layout="list" show_rating="false"]

Quick Copy Reference

Here are the most common Pro shortcodes, ready to paste:

Product reviews with filters (default):

[trustie_reviews product_id="YOUR_ID"]

Expanded rating card with breakdown:

[trustie_rating product_id="YOUR_ID" style="expanded" show_breakdown="true"]

Store-wide review statistics:

[trustie_review_summary]

Star rating breakdown:

[trustie_star_summary product_id="YOUR_ID"]

Store-level reviews page:

[trustie_store_reviews show_form="true" layout="grid" columns="3"]

Full tabbed reviews page:

[trustie_reviews_page]

Reviews without filter controls:

[trustie_reviews product_id="YOUR_ID" show_filters="false"]

Google reviews with schema:

[trustie_google_reviews]

Testimonials grid:

[trustie_testimonials columns="3" limit="6"]

Replace YOUR_ID with your actual WooCommerce product ID. You can find it in the URL when editing a product — look for post=123.

Using Shortcodes in Page Builders

All shortcodes work in popular page builders:

  • Gutenberg (Block Editor): Add a Shortcode block
  • Elementor: Use the Shortcode widget
  • Divi: Use the Code module
  • WPBakery: Use Raw HTML or Text Block
  • Beaver Builder: Use the HTML module

Using Shortcodes in PHP Templates

For developers who need shortcodes in theme files:

<?php echo do_shortcode( '[trustie_reviews product_id="42"]' ); ?>

Performance Tips

  1. Set reasonable limits — 10–12 reviews per page is plenty. Load More handles the rest.
  2. Use show_filters wisely — filters add interactivity but also extra JavaScript. Disable them with show_filters="false" on pages where visitors won’t need them.
  3. Cache your pages — Trustie works beautifully with caching plugins.
  4. Disable unused features — if you’re not using testimonials or Google Reviews, turn them off in Settings > Features to skip loading their assets entirely.

How can we help?