Unable to Assign Reviews to Specific Posts
-
Hi,
I have been trying to assign reviews to specific posts/pages, but I am unable to do so. Any test review I enter on the frontend, is assigned to all posts, and every post displays the average rating across all posts, instead of only for that specific post. I have tried everything, including selecting the ‘Strict Assignment’ option, using “assigned_posts”, “assigned_terms” and “post_type” correctly in my short codes with the correct post IDs/slugs and Categories, even adding the following code in the functions.php file of my theme (WordPress twenty-twenty-four):
add_filter(‘site-reviews/query/sql/clause/operator’, function () {
return ‘AND’;
});These are the short codes I have inserted on my page: [site_reviews_summary post_type:cultural-tour-3-days hide=”bars”], [site_reviews_form post_type:cultural-tour-3-days] and [site_reviews post_type:cultural-tour-3-days display=”10″].
On another page ( https://bhutantropicaltoursandtravel.com/2024/06/16/dagala-trekking/ ), I ahve inserted similar short codes, with just the slug being different (dagala-trekking).
Nothing seems to work. Can someone help me resolve this issue? I would be very grateful.
Thanks and regards,
Arnav
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.