Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

Thanks!

share|improve this question
1  
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
    
Feel free to post it as an answer - I'd prefer not to accept my own :) –  stringo0 Nov 10 '11 at 22:38
show 2 more comments

1 Answer

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
add comment

Your Answer

 
discard

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.