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

Attributes

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.

Examples

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

[gdrts_review_summary]

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

[gdrts_review_summary post_id=523 display_count=false]
1
0
190
Rate this reference

You are not allowed to rate this post.

Comments

Leave a Reply