PDA

View Full Version : How can I manually display the ratings within my posts and comments?


ryan
01-18-2009, 05:43 PM
You can manually display the ratings within posts and comments by inserting the following code within The Loop (http://codex.wordpress.org/The_Loop).

For posts:
<?php if(class_exists('WFReview')) WFReview::get_post_ratings(); ?>

For comments:
<?php if(class_exists('WFReview')) WFReview::get_comment_rating(); ?>

For the comment form:
<?php if(class_exists('WFReview')) WFReview::embed_comment_form(); ?>

Support for manually placing the ratings was added in version 1.1 of the plug-in.

pnewcomb
11-14-2009, 08:34 PM
is there a way to get the ratings to show up at a certain place in the template, like beside the product image instead of at the top of the post? if i edit the loop i think i can only change it from the top to the bottom, unless i'm mistaken.

pnewcomb
11-14-2009, 08:48 PM
also, when i add the code to the loop in single.php the the original ratings remain, so there are 2 rating blocks. how do I get rid of the 1st one?

ryan
11-15-2009, 09:36 AM
Uncheck the option to automatically include it.

fbeach73
11-16-2009, 08:02 PM
is there an easy way to wrap the table and align it right or left, so u can wrap txt around it?
this would be more then likely a css call?

fbeach73
11-16-2009, 08:46 PM
i guess this is working for me, and if anyone needs it for future ref:

http://www.reviewpluginforwordpress.com/support/showpost.php?p=1751&postcount=7