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

  1. honestpianist
    Posted 2 years 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:

    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:


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Customer Reviews
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic