Support » Plugin: Post Ratings » [Plugin: Post Ratings] display rating on home but not allow to change it

Viewing 1 replies (of 1 total)
  • Use something like:

    <?php
    $rating = get_post_meta($post->ID, 'rating', true);
    $votes = get_post_meta($post->ID, 'votes', true);
    
    $votes_num = ($votes > 1) ? 'votes' : 'vote';
    ?>
    <div class=ratings>
    <ul class="rated max-rating" title="<?php echo $rating; ?> / 5">
    <li class="rating" style="width:<?php print ($rating * 16); ?>px"><span class="average"><?php echo $rating; ?></span></li>
    </ul>
    <div class="meta">
    <strong class="votes"><?php echo $votes; ?></strong> <?php echo $votes_num; ?>, <strong><?php echo $rating; ?></strong> promedio.
    </div>
    </div>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Post Ratings] display rating on home but not allow to change it’ is closed to new replies.