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'm finding GD Star Ratings a bit complex to work with. I'm using the comment_form function to generate a custom "review" form on a custom post type. At the top of the form, I want reviewers to leave their rating.

I am guessing that I want to hook into the "comment_form_top" action with one of the gd star ratings functions. Am I thinking the right direction? If so, do any of you have a code sample I could refer to? I'm having a hard time finding much in terms of documentation.

Any ideas and suggestions are welcomed - Thank you!

share|improve this question
up vote 0 down vote accepted

Got it! The key was a custom callback on wp_list_comments. Here's the snippet of code I used within my comments:

    <?php if (defined("STARRATING_INSTALLED")) : ?>
        <div class="rating" style="float: right">
            <?php wp_gdsr_comment_integrate_standard_result(get_comment_ID()); ?>
    <?php endif; ?>
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.