Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript.

This shortcode embeds a summary rating block with an optional link to reviews.


Shortcode has several attributes:

  • post_id: ID of the post to embed reviews block for. If not set or set to zero, it will embed for the current post.
  • display_count: show the count with a number of reviews with a link to reviews. Default: true.
  • display_rich_snippet: run the rich snippet code to embed the snippet. Default: true.
  • class: optional CSS class to add to the wrapper of the embedded block.


The simplest example, to show the embed block for the current post:


The to embed block for the custom post ID without the count element:

[gdrts_review_summary post_id=523 display_count=false]
Rate this reference

You are not allowed to rate this post.


Leave a Reply