WP Post Ratings plugin: Show star images only

There are many star rating plugins for WordPress available, while the plugin “GD Star Rating” has many functions, is the “WP Post Ratings” plugin much easier to use. There is one feature I like to see in the last mentioned plugin: A static result view!

People should rate your content on the page where the article or product is located and not on other pages, but showing a rating on other place can increase your CTR.
The following function will show only the images for a given post ID. Install WP Post Ratings (if you don’t have already), add this function into your functions.php file and place the function name into your WordPress theme file.

That’s all, I hope the WordPress plugin author will add this functionality very soon.


Don't miss a future blog post!

Subscribe now and get future blog posts right in your email inbox.



2012-08-05 9:12 PM Reply


I incorporated this function but not sure how to invoke it? I placed it in a php template but nothing is appearing. Can you provide an example? Thanks!


2012-08-06 5:58 AM Reply

Hello Carlos.

do you installed the WP Post Ratings plugin?
The code inside the theme must be (inside the loop)

Place the code inside the single.php theme and it should work.


2012-10-25 5:43 PM Reply

Awesome script, do you have any idea how to output variables like number of votes?

Thanks for the share!


2012-10-25 7:42 PM Reply

Hi Jordash,

this kind of query should do the trick:

I haven’t tried the code, because I don’t use the plugin at the moment.

Leave a Comment