View Full Version : How can I manually display the ratings within my posts and comments?
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.
Steve
04-26-2009, 12:22 PM
<?php if(class_exists('WFReview')) WFReview::get_post_ratings(); ?>
Will this accept any parameters? Would it be possible to have it sort post by rating asc?
Currently, no parameters are currently accepted by this function. The current sort order is by category and rating ID number. I'll add the ability to control that sort order to the list of suggestions for a near future update.
vikassah
05-06-2009, 12:23 PM
The problem is when I manually insert the rating, it appears twice. Once for my manual addition and another by itself. How to get rid of the second one?
nickmattern
05-06-2009, 01:10 PM
The problem is when I manually insert the rating, it appears twice. Once for my manual addition and another by itself. How to get rid of the second one?
Get rid of the manually inserted code.
vikassah
05-06-2009, 10:28 PM
but the manually inserted one allows me to post it at the proper location in the theme. There is no other way?
nickmattern
05-06-2009, 10:29 PM
but the manually inserted one allows me to post it at the proper location in the theme. There is no other way?
PM me the site and I'll take a peek.
vikassah
05-07-2009, 03:26 AM
sent you the PM
vikassah
05-12-2009, 09:02 AM
I nick I do not know what fix you did but nothing is appearing on the site now, default ratings and manually inserted ones both are gone.
nickmattern
05-12-2009, 09:07 AM
I nick I do not know what fix you did but nothing is appearing on the site now, default ratings and manually inserted ones both are gone.
We changed nothing on your site. I recommend you take a look at the plugin folder, make sure it's named wfreview.
truck2315
07-29-2009, 08:39 PM
Hi,
I would like to manually display the Search by Zipcode form in the content of my site. Can anyone tell me how to do this?
Thanks!
spyderman4g63
03-18-2010, 06:55 PM
I got the plugin to display where I want, but why are my categories being appended to the_excerpt().
edit: Never-mind I see there is an option to automatically append in the control panel. Disabled that.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.