I have recently installed the WP Customer Reviews plugin and have been quite satisfied.
I implemented the average ratings feature using the methods discussed here:
The problem that I am having is with accessing the variable $postid (not $postID) so
that I can use it in the get_aggregate_reviews function. I would like to change the MySQL query on line 374 to read “…WHERE
Once this is working, I should be able to retrieve the average rating along with the reviews while using the [WPCR_SHOW POSTID=”907″ NUM=”3″ SNIPPET=”” MORE=”” HIDECUSTOM=”0″ HIDERESPONSE=”0″] shortcode.
The variable functions correctly in the output_reviews_show function but for the life of me, I cannot access it in the get_aggregate_reviews. Any help would be greatly appreciated.
The following link shows a text version of the code:
- The topic ‘Can't Access $postid in get_aggregate_reviews function’ is closed to new replies.