nielsenrc
Forum Replies Created
-
OK – well based on my (very quick) reading of the source code:
Putting the testimonial on a global element like the sidebar will produce the form on all pages because the only conditions that are checked are whether or not the form should be above or below the testimonial.
Because I don’t have a lot of time (and I need to use this plugin) – I hardcoded a conditional statement in the do_the_content() function that checks for what page it’s on. Find these two conditionals in wp-customer-reviews.php:
if ($this->options[‘form_location’] == 1) {…}
if ($this->options[‘form_location’] == 0) {…}and wrap the call to $this->show_reviews_form() call in another conditional like this:
if($_SERVER[‘REQUEST_URI’] == ‘/only-page-form-should-be-on’) {
$the_content .= $this->show_reviews_form();
}Ghetto fix but it worked for me. We were able to tentatively confirm that the problem seemed to be theme dependent – but what it is about a particular theme that makes it work or not work is beyond me.
@bompus was this ever resolved? The review form shows up in the content area on every page when we try to include the
<?php echo do_shortcode(‘[WPCR_SHOW POSTID=”ALL” NUM=”1″ SNIPPET=”” MORE=”” HIDECUSTOM=”0″ HIDERESPONSE=”0″]’); ?> in our sidebar. Any ideas?