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.

4 Comments

Carlos

August 5, 2012 9:12 pm

Hi,

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!

Olaf

August 6, 2012 5:58 am

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.

Jordash

October 25, 2012 5:43 pm

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

Thanks for the share!

Olaf

October 25, 2012 7:42 pm

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.

Comments are closed