If you are assigning reviews to your CTP pages, then you can use post_id in place of the actual Post ID as the assign_to/assigned_to shortcode option values.
For example:
[site_reviews_form assign_to=post_id]
And:
[site_reviews assigned_to=post_id]
[site_reviews_summary assigned_to=post_id]
You can also add the shortcode directly to the page template PHP file like this:
<?php
if( shortcode_exists( 'site_reviews' )) {
echo do_shortcode( '[site_reviews assigned_to=post-id]' );
}
etc.
Hi Gemini Labs.
Thanks for quick reply.
I am not sure if I have been well understood.
I want assigned to post in automate. And only use shortcode like this for example: [site_reviews assigned_to=”auto”].
The whole process takes place post id automatically, without having to copy the shortcode and assign the post id.
I want assigned to post in automate. And only use shortcode like this for example: [site_reviews assigned_to=”auto”].
Exactly! If you use post_id as the value instead of the actual post ID, Site Reviews will automatically use the post ID of the current page.
So do this:
[site_reviews assigned_to=post_id]
Instead of this:
[site_reviews assigned_to=1022]
I did not understand – you wrote this in the first post. thanks for the explanation!
Its great. the best plugin on reviews.