WordPress.org

Ready to get started?Download WordPress

Forums

GD Star Rating
Pronblem integrating GD Stars into Comments (1 post)

  1. krystiank
    Member
    Posted 3 years ago #

    I need to provide a way to rate the post using the standard wordpress form. I think I was able to do it using this code:

    <?php if (defined("STARRATING_INSTALLED")) : ?>
    <p><?php wp_gdsr_comment_integrate_standard_rating(); ?>
    <label for="url"><small>Rating</small></label>
    </p><?php endif; ?>

    By default when you submit your comment with the rating, the results show the comment, name and starst but the stars are not showing the rating you initially selected before you submited the form.

    So I used this code as instructed in the documentation

    <?php if (defined("STARRATING_INSTALLED")) : ?>
    <div style="float: right">
    <?php  wp_gdsr_comment_integrate_standard_result(get_comment_ID()); ?>
    </div>
    <?php endif; comment_text(); ?>

    BUT NOTHING is happening. I found a theme with comments.php that supports this snippet of code but nothing.

    WHAT I am doing wrong?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic