GD Star Rating Tips
Contents
[ hide ]
What is GD Star Rating?
So this is my test of the WP Wiki plugin on the specific topic of GD Star Rating. I love this plugin, it’s very well thought out and adds alot of fantastic functionality for reviews, ratings, trends and tons of other features.
The one *slight* issue with the plugin is complexity. The developer writes excellent developer documentation but at heart he is a software developer. Now coming from a background of software development myself I can understand him but for many Wordpress webmasters cracking open your theme, adding a few classes and rewriting comment and post loops is a bit daunting.
If you’re in need of some help then feel free to comment below and I’ll see what I can do to help. Below you’ll find a list of some of the most common issues I’ve had with GD Star Rating.
Previews show GD Star Rating code when I insert the rating block at “Top and Bottom” through the admin.
If you’re using homepage previews like I do on my homepage, you might end up with some GD Star Rating code in your previews. MillanN has already covered this but the easiest thing to do is crack open your single.php (or which page is your post page, this is theme dependent) and add the following bit of code somewhere before your post body:
<!-- Custom GD Rating Insertion -->
<?php if (defined("STARRATING_INSTALLED")) : ?>
<div style="float: left">
<?php wp_gdsr_render_article(); ?>
</div>
<?php endif;?>
<!-- End GD Staring Rating -->
This will insert your rating block at the top of the post without affecting your previews.
Obviously this is a bit more complicated than simply adding the Comment to “Top and Bottom” through the settings panel but it’s a fairly painless addition — note: the “if” statement above simply detects if GD Star Rating is activated and does not call the function if it it’s inactive and prevents errors on your site should you turn it off.
GD Star Ratings Function List
As mentioned above there are a ton of functions you can use to customize the appearance and behavior of GD Star Rating. You might be look for the complete GD Star Rating Functions List — hopefully you find that useful in your customization and development.
This page is wiki editable click here to edit this page.2 Responses to “GD Star Rating Tips”
Join in on the Discussion! Comment Now:






I’ve been having an issue adding the star rating in my comment section. i was able to get the ratings block to show up in the comment area but when I voted and left my comment, my rating didn’t show up in my comment.
I’m also having an issue with the way the voting calculation works, if I can get a rating calculation that combines the Star rating with the number of votes that would be great.
Can you help with that?
Thanks!
@Al I generally find that the ratings for comments might have something to do with your comments template. I tried to join your site but the OpenID registered and error and then your on site sign up never sent me an email with my password. If you want to fire me an email I can do my best to help out or we can just fire messages back and forth on here.
Cheers!