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

  • This topic was modified 1 hour, 23 minutes ago by arnav11.

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer