review summary count error
-
hi GL
the summary of the reviews is not updating correctly. i have cleared cache and done all i can do, i have even read documentations and all, YET!
kindly help
Onyeka
The page I need help with: [log in to see the link]
-
This can happen for different reasons. If it does, please use the “Recalculate Summary Counts” Tool on the Site Reviews > Tools page to fix them.
This will no longer be needed in the upcoming version 5.
hi.
thanks for the prompt response!i tired that too, it just dropped the count to zero (worse!)
i think i’ll clear cache again & see..or simply disable that functionality.how long till V5 drops?
1. Please go to the Site Reviews > Tools > System Info page and scroll all the way down to the bottom. It will show you the stored summary counts of your reviews. For example, in this screenshot you can see I have a total of 4 reviews made up of:
0 x 0-star reviews
0 x 1-star reviews
0 x 2-star reviews
1 x 3-star reviews
1 x 4-star reviews
2 x 5-star reviews
Please verify that those counts are correct.
2. If the counts are correct, please verify the shortcode options that you are using. For example, I can see that you are using the summary shortcode like this:
[site_reviews_summary assigned_to=2998]Are you sure that you have reviews that are assigned to a page with a WordPress Post ID of 2998?
The page the shortcode is on (/bale-home/) has a WordPress Post ID of 2992, so if you have assigned reviews to that page, you will need to fix the shortcode options that you are using either like this:
[site_reviews_summary assigned_to=2992]OR like this:
[site_reviews_summary assigned_to=post_id]3. You can also see which pages your reviews have been assigned to here:

-
This reply was modified 5 years, 8 months ago by
Gemini Labs.
1. it’s very correct
[REVIEW COUNTS]
local…………………………….. : 3 (0, 0, 0, 0, 0, 3)2. i used 2998(which is my actual reviews page /bale-reviews/) cos i want to display reviews-summary from that page in/to /bale-home/
i also followed proper terms for the shortcode;
[site_reviews_summary assigned_to=”2998″ text=”{rating} out of {max} stars (based on {num} Customer Reviews)” title=”Overall Customer Rating”]
-
This reply was modified 5 years, 8 months ago by
onyekaxt.
1. Please first try using the shortcode with no options to make sure that the global counts are correct: [site_reviews_summary]
2. Verify that each of your reviews are actually assigned to the correct page which has a WordPress Post ID of 2998 (see the screenshot above).
3. Finally, you can use the following snippet to enable the Custom Fields metabox on the reviews in order to see the actual Post ID that the review has been assigned to.
/** * Unprotect Site Reviews' hidden meta key used for the assigned post ID * @param bool $protected * @param string $metaKey * @return bool */ add_filter('is_protected_meta', function ($protected, $metaKey) { return in_array($metaKey, ['_assigned_to']) ? false : $protected; }, 20, 2); /** * Enable the Custom Fields Metabox for reviews * @return void */ add_action('admin_init', function () { add_post_type_support('site-review', 'custom-fields'); });You can either use the Code Snippets plugin, or add it to your theme’s functions.php file.
-
This reply was modified 5 years, 8 months ago by
Gemini Labs.
1. WOW!
[site_reviews_summary] worked, it showed the entire (3 count), so what do i do next?
2. YES they’re
3. OK, i will add it to the functions.php of my childtheme
-
This reply was modified 5 years, 8 months ago by
onyekaxt.
Did you by any chance clone any of your pages? Because Site Reviews stores the assigned information in the assigned page meta, cloning the page can mess this up.
Since you only have 3 reviews, the easiest way to fix this is to edit each review, remove the current assigned page, then assign the correct page and save the review.

Let me know if that works.
1. no…no cloning of any sort
2. i understand the assigning thingy.. i also double-checked, they’re all assigned to the proper pages.
the issue is, i want to pick all reviews in just /bale-reviews/ ONLY and summarize them in /bale-home/
well, i am optimizing at the moment, when i am done, i will check overall, then get back to ya
regards!
-
This reply was modified 5 years, 8 months ago by
onyekaxt.
hi @geminilabs
i have reasons to believe that the issue was from my cloudflare integration.
thanks for your insights & help.one more request though,
can reviews or its summary be shown on google? show me how to activate that functionality, if it’s possible.warm regards.
OnyekaUse the schema option on the [site_reviews] shortcode.
it amazes me how fast you respond!
I’ll surely check the shortcodes & get back to ya!
regards
-
This reply was modified 5 years, 8 months ago by
The topic ‘review summary count error’ is closed to new replies.