Articles on: Add reviews to your site
This article is also available in:

How to add a Review widget to WordPress with Trustmary's plugin

Quick steps


  1. In WordPress, install and activate the Trustmary plugin from Plugins → Add Plugin.
  2. In Trustmary, create an API key under Settings → Developers and copy it.
  3. Paste the key into the plugin's Settings page and click Save Changes.
  4. Copy a widget's shortcode from Inline widgets and paste it into a block on the page.


The plugin connects a WordPress site to a Trustmary account with an API key, and then every inline widget of the account is available as a shortcode. The setup takes about five minutes. It assumes a Trustmary account with at least one widget; widgets are created in Trustmary, see How to create widgets.


Step 1 — Install the plugin


In the WordPress admin, go to Plugins and click Add Plugin at the top (Add New in older WordPress versions). Search for Trustmary in the search box on the right and click Install Now on the plugin's card. The install takes a few seconds, after which the button reads Activate: click it to activate the plugin.



Step 2 — Create an API key in Trustmary


In Trustmary, open Settings from the gear icon in the top bar, and pick Developers in the settings menu.



Under API keys, click Add new.



Give the key a name that identifies it later, for example WordPress, and click Save.



The key is shown only once. Click Copy and keep it somewhere safe for the next step.



Step 3 — Connect the plugin


Back in WordPress, open Trustmary in the admin menu. On the plugin's dashboard, click Set up API key here.



Paste the key into API key and click Save Changes. The page then shows the organization's id and name, which confirms the connection. Leave Add Trustmary scripts automatically on Yes: the plugin then adds the Trustmary tag to the site itself.



Step 4 — Place a widget on a page


Open Inline widgets under Trustmary in the admin menu. The list holds every inline widget of the account with its shortcode; clicking the shortcode field copies it.


Give the widgets distinctive names in Trustmary, so they are easy to tell apart in this list.



Open the page in the editor, add a block where the widget should go and paste the shortcode into it. Almost any block type works, a Shortcode block or a paragraph alike: WordPress recognises the shortcode. Update the page, and the widget shows on it.



Troubleshooting


The widget does not show on the page. Check that Add Trustmary scripts automatically is on Yes on the plugin's Settings page, and clear the site's cache if a caching plugin is in use. Other causes can be found in Why is my widget not visible?.


A popup widget is not in the list. Inline widgets holds the inline widgets only; popups are placed from the plugin's Popups page.

Updated on: 20/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!