WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
Can't Access $postid in get_aggregate_reviews function (1 post)

  1. honestpianist
    Member
    Posted 1 year ago #

    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:
    http://wordpress.org/support/topic/plugin-wp-customer-reviews-average-review-desperately-needed

    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 page_id=$postid AND..."

    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:
    http://tranosdesigns.com/help/wp-customer-reviews.txt

    http://wordpress.org/extend/plugins/wp-customer-reviews/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic