0

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!

  • 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
  • 1
    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
1

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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