WP Product Review Shortcode Documentation
Our WP Product Review plugin allows you to turn your boring text reviews to catchy product reviews, and it comes with a shortcodes feature which helps you building awesome product rating tables.
How to Install
After you have purchased the plugin go to Purchase History to download the plugin. After downloading the plugin, navigate to Plugins > Add New > Upload, in your WordPress dashboard. Now, click the Choose File button, select the archive of your plugin from your local computer and press the Install Now button. In few seconds, WordPress will upload and extract the plugin archive for you. All you need to do next is to press the Activate link under the message for successful plugin installation.
Using Shortcode to Display Reviews
The shortcode has two parameters which you can configure, which are:
- post_id - ID of your post review.
- visual(full/yes/no) - Type of the review you want.
Show Full Review
The following shortcode can be used to generate the full table:
[P_REVIEW post_id=1765 visual='full']
Make sure to replace 1765 with the ID of your post.
The following shortcode can be used to generate the only the review knob:
[P_REVIEW post_id=1765 visual='yes']
And you can change visual from yes to no, which will just display the review number as the plain text.
Using Shortcode in Theme Files
To use shortcode outside the post and in theme files, do_shortcode function can be used, like this:
<?php echo do_shortcode([P_REVIEW post_id=1765 visual='yes']); ?>
Where can I create these reviews?
You need to have WP Product Review installed in order to use this plugin. It only allows you to display the comparison table, while reviews are creating with WP Product Review plugin.