WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget: Star Rating System
[resolved] Ratings Position (5 posts)

  1. tairak
    Member
    Posted 1 year ago #

    Hello, I would like to add the ratings (stars) to my post meta data (a position outside 'the_content').

    Can I add php code straight into the theme template and "hide" the star ratings in 'the_content' on the single post page?

    Thanks,
    Taira

    http://wordpress.org/extend/plugins/rating-widget/

  2. dooramooz
    Member
    Posted 1 year ago #

    Did you find a solution or tutorial?

  3. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry for the late response. YES YOU CAN ADD RATINGS RIGHT INTO YOUR TEMPLATE! Add the following code right at the template:
    <?php
    global $rwp, $post;
    $rwp->EmbedRating(($post->ID + 1) . '0', $post->post_title, get_permalink($post->ID), $this->post_class, false);
    ?>

    Please let me know if it was helpful.

  4. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    @tairak, @dooramooz - I'm closing this ticket. If it didn't help, please re-open it with your comments.

  5. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    A small fix to the code:

    <?php
    global $rwp, $post;
    $rwp->EmbedRating(($post->ID + 1) . '0', $post->post_title, get_permalink($post->ID), 'blog-post', false);
    ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags