» Installation Instructions
-
Open wp-content/plugins Folder
-
Put:
Folder: postratings
-
Activate WP-PostRatings Plugin
-
Refer To Usage For Further Instructions
» Upgrade Instructions
From v1.0x To v1.02
-
Deactivate WP-PostRatings Plugin
-
Open wp-content/plugins Folder
-
Overwrite:
Folder: postratings
-
Activate WP-PostRatings Plugin
-
Go to 'WP-Admin -> Ratings -> Ratings Options' and restore all the template variables to Default
» Usage Instructions
General Usage
-
Open wp-content/themes/<YOUR THEME NAME>/index.php
You may place it in single.php, post.php or page.php also.
-
Find:
<?php while (have_posts()) : the_post(); ?>
-
Add Anywhere Below It:
<?php if(function_exists('the_ratings')) { the_ratings(); } ?>
If you DO NOT want the ratings to appear in every post, DO NOT use the code above. Just type in [ratings] into the selected post content and it will embed ratings into that post only.
-
Note: In IE, some of the poll's text may appear jagged (this is normal in IE). To solve this issue,
-
Open poll-css.css
-
Find:
/* background-color: #ffffff; */
-
Replace:
background-color: #ffffff;
Where #ffffff should be your background color for the poll.
Ratings Stats (Outside WP Loop)
-
To Display Highest Rated Post
-
Use:
<?php if (function_exists('get_highest_rated')): ?>
<?php get_highest_rated(); ?>
<?php endif; ?>
-
To Display Most Rated Post
-
Use:
<?php if (function_exists('get_most_rated')): ?>
<?php get_most_rated(); ?>
<?php endif; ?>