gdrts_review_summary

Developer Knowledge Level

This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!

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
494
Rate this reference

You are not allowed to rate this post.

Leave a Comment