WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to add ratings to a page for a few different fields (ex: color, quality, etc.) - not just per post or comment. I'm generating the page using a template, so I have access to the php file that generates the html.

Is there any pre-existing rating plugin where I can add the rating feature anywhere on the page? (For example, by saying [rate id=5 field=color])

I've looked at GD Star, but I don't think it works outside of pages and posts. If this is possible with GD Star, I'd love a link to how to do it - I've looked through their documentation and have come up empty.


share|improve this question
Do you think using the plugin and then just referencing the plugins functions from your theme, making sure to check that the plugin is active, would work? – Sterling Hamilton Nov 10 '11 at 6:50
I ended up writing my own functions after seeing code from the NextGen Gallery Voting plugin. – stringo0 Nov 10 '11 at 22:15
@Grok - I did something similar to that :) - I was concerned it would take too long since I'm not familiar with wordpress. – stringo0 Nov 10 '11 at 22:15
Sweet! I'll post it as an answer then. Maybe it will help people down the road. Oh wait! You answered your own question! :P – Sterling Hamilton Nov 10 '11 at 22:26
Please post the code if you can. it will be much appreciated as it might help me with my problem. pls see: wordpress.stackexchange.com/questions/33480/… Cheers! – echez Nov 11 '11 at 0:12
up vote 1 down vote accepted

You should install the plugin and reference it inside of a function within your theme.

Be sure to check to make sure the expected plugin/function actually exist.

Then you can just use it's functionality as you see fit!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.