WordPress Plugins > WP-PostRatings
Tips & Tricks For WP-PostRatings
GaMerZ:
nope
duplosion:
Is there a way to paginate a list of the 100 highest rated posts?
The posts I found on the subject are a couple years old and no longer seem relevant.
PS: I'm using your pagenavi plugin.
GaMerZ:
Nope not possible, unless you create a page template of it and use query_post() function to display it and then use PageNavi. I have not tested this method yet, so it is just theory only
nv1962:
Here's a tip, for those using star ratings, so that the displayed row of stars shows properly, at the same height of line as the text that follows it (i.e. "x votes, average x.xx") as such tiny images often end up slightly higher than the text on the same line:
In postratings-css.css find and change the CSS for images in the post-ratings class as follows:
--- Code: ---.post-ratings img, .post-ratings-loading img, .post-ratings-image img {
border:0 none;
margin:0 0 -3px !important;
padding:0;
}
--- End code ---
It's the negative bottom margin of -3px that'll do the trick.
For stars shown in a widget (i.e. with "highest rated"), you should modify the CSS for the post-ratings-image class as follows:
--- Code: ---.post-ratings-image {
border: 0px;
margin:0 0 -3px !important;
padding:0;
}
--- End code ---
That way, the stars line up with the text!
Note: in either of these two, the vertical (bottom) margin may need adjusting, depending on the font type and size you use, so it could be -5px for large fonts, or -2px for smaller ones.
Hope that's useful.
duplosion:
--- Quote from: GaMerZ on 10 June 2009, 01:08 ---Nope not possible, unless you create a page template of it and use query_post() function to display it and then use PageNavi. I have not tested this method yet, so it is just theory only
--- End quote ---
Just wanted to let you know I finally got motivated to study up on query_post() and how pagination really works. Anyway, I got it working. I'd be glad to contribute my solution to a help doc -- let me know if that would be worthwhile.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version