Hello,
I am trying to add our review score into Block 15. We use another component to do our review scores so I would love to add the needed code into that block spot to ensure the score is visible on the front page. I just need to know where the code for that block is. I have hunted though the files, but for the life of me, I can not find it
Okay, I sorted out what block to edit, but now I have run into another issue. The block does not seem to be giving the needed information for my code to execute.
it is now:
// Added for rating requirement : Starts Here
//$blu_review_rating_scale = get_post_meta( get_the_ID(), 'blu_review_rating_scale', true );
$blu_review_rating = get_post_meta( get_the_ID(), 'blu_review_rating', true );
// check if the custom field has a value
if( ! empty( $blu_review_rating ) ) {
echo '<div class="rating-box">';
echo '<i class="rating-text-2">Rating</i><p class="postrating-2">'.$blu_review_rating.'</p>';
echo '</div>';
}
// Added for rating requirement : Ends Here
but this seems to be having issue. The command is not getting the needed information for the code to work. Any ideas?
Hi bfrye26,
If you have a review score on post, this appears in all modules and blocks where used the post. Here http://screencast.com/t/25s1qyza you can find the function.
The exemple you can see here: http://screencast.com/t/UEIVyoXL
Thanks.
We use a different review component, and it works well in most cases, the only issue is that for some reason block 15 will not let the information be added. We managed to add it well to the normal page display as seen here:
http://www.cgmagonline.com/category/review-list/game-reviews/
just not sure why the block will not let us add it in
Hi,
I ran a few more tests on block 15 and it seems you can activate reviews on it if you edit the theme core files like so: http://screencast.com/t/oVoGHmIF4bdG
get_author();?>
get_date();?>
get_comments();?>
(Make sure you add the div’s as well. the forum deletes them)
result: http://screencast.com/t/RzcpKiYg5o
Try it out with your plugin and see if it will show up!
Thank you!
