Shortcodes for Yotpo


Prerequisites (Important)

  • The Yotpo Reviews for WooCommerce plugin MUST be installed for this plugin to work.
  • WooCommerce 3.X and above (due to new methods).
    This plugin allows using shortcodes to display Yotpo widgets inside and oustide (applicable widgets only) of product pages e.g. page builders, sidebars, widgets etc.

** For updates & usage instructions: **


[yotpo_bottomline product_id="47" noempty]
[yotpo_product_gallery gallery_id="5bbb561f5ea79223a9da0e7c"]
[yotpo_product_reviews_carousel background_color="#22fff2" mode="most-recent" type="both" count="3"]

For the reviews carousel, get the attributes when generating the code from your Yotpo dashboard.
Special arguments exclusive to this plugin:
1. yotpo_product_gallery – adding noproduct will prevent a product ID being added if the gallery is not a product gallery.
2. yotpo_product_reviews_carousel:
adding product_id="product-id-here" will display a reviews carousel for the given product id.
adding noproduct will prevent a product id from being added in case you need a reviews carousel for all reviews.
3. yotpo_widget and yotpo_bottomline accept an optional product_id argument (e.g. `product_id= »47″) if you’d like to provide a product ID. Otherwise, the ID of the current product will be used.

Captures d’écran

  • Example usage of the shortcodes.


Installation is very simple:
1. Upload the plugin files to the /wp-content/plugins/yotpo-shortcodes directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the ‘Plugins’ screen in WordPress
3. Use the shortcodes throughout your store.


A shortcode is missing! / I need more shortcodes!

Get in touch, and I’ll see what can be done.


Lire l’avis

Contributeurs & développeurs

« Shortcodes for Yotpo » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.


Traduisez « Shortcodes for Yotpo » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.



  • Tested with WooCommerce 4.1.0-rc.1 and WordPress 5.5-alpha-47623.
  • Fixed exception in yotpo_bottomline when Yotpo API is unreachable.


  • Fixed error when using [yotpo_bottomline] wiht a non-existing (in Yotpo) product.


  • Code cleanup.
  • Added review highlights widget [yotpo_highlights] with optional product_id argument.
  • Added Q&A widget [yotpo_questions] with optional product_id argument.


  • Now using Yotpo Reviews for WooCommerce (YRFW) as requirement.


  • Showing notice to warn users prior to updating to 1.2.X versions.
  • Checked with latest version of WP.


  • Checked with WC 3.6.2 and WP 5.2
  • Minor fixes and cleanup


  • OOP Rewrite.
  • Fixed requirement of Yotpo.
  • Checked with WordPress 5.2 alpha.


  • Fixed issue with [yotpo_bottomline] when arguments are not given.


  • Added [yotpo_testimonials] shortcode.
  • Added empty template to [yotpo_bottomline] (when product has no reviews).
  • Tested with latest versions of WordPress and WooCommerce


  • Added manual mode to reviews carousel.
  • Checked with latest versions of WordPress and WooCommerce.


  • Added badge widget.
  • Added optional product_id arguments to main widget and bottomline widget.
  • Now returning HTML instead of echoing yotpo functions.
  • Make sure to return nothing if post is not a product and no ID is supplied.


  • Added noproduct arguments.
  • Initial release on WP.


  • Initial commit.