gdrts_reviews_block
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 list of reviews (with review forum) block anywhere on the page, inside the WordPress loop.
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.
- template: template to use. The plugin comes with 1 default template, so for now, this option doesn’t have any effect, unless extra templates have been registered.
- class: optional CSS class to add to the wrapper of the embedded block.
Examples
Simplest example, to show the embed block for current post and the template from the settings:
[gdrts_reviews_block]