Support » Plugin: Rating-Widget: Star Review System » Star ratings in blog list

  • SCO7TY

    (@sco7ty)


    So ill try and explain what i would like to do as best as i can.

    where i have a list of posts, with image title and exert etc. I would like to have the star rating as well.

    So basically people can see what star rating the post is without having to actually click on the read more button and go in to the post, is this possible?

    Thanks in advance…

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author vovafeldman

    (@svovaf)

    Did you try to activate the plugin for excerpts?

    Is there a way to make the posted rated votes appear on a thumbnail of a post on the front page?

    A theme I use has ‘review ratings’ but its something you set when you make a post and give it a review rating. They are not total votes cast

    See what I’d like to achieve looks great in my opinion if this plugin or any other plugin could achieve this:

    http://www.frip.in/wp-content/uploads/2012/12/Boulevard-A-WordPress-Magazine-Theme.png

    I saw in another post you mention this:

    <div class="rw-ui-container rw-urid-<?php echo $img->unique_integer_id; ?>"></div>
    
    RW.render();

    This is the part in my theme called “boulevard magazine theme’s” item review code:

    <div class="post-review">
    							<?php if(get_post_meta($post->ID, 'pyre_overall_score', true)): ?>
    							<div class="overall-score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/big_<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="" /></div>
    							<?php endif; ?>
    							<ul>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_1', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_1', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_1_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_2', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_2', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_2_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_3', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_3', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_3_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_4', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_4', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_4_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_5', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_5', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_5_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    							</ul>
    						</div>

    How could I go about modifying this part and making your rating appear in my theme in that place?

    The item-review css is just this:

    .item-review { background:url(images/trans.png) repeat; position:absolute; left:0; bottom:9px; display:block; height:12px; padding:5px;}

    Sorry also these are present in my theme:

    .post-review { float:right; width:200px; border:1px solid #D7D7D7; margin-left:10px; margin-bottom:20px; }
    	.overall-score { background:#EEE; margin:1px; padding:10px; text-align:center; }
    	.post-review ul { border-top:1px solid #D7D7D7; padding:0; margin:0; }
    	.post-review ul li { background:url(images/criteria-bg.gif) repeat-x bottom; border-bottom:1px solid #D7D7D7; padding:10px; color:#555; margin:0; }
    	.post-review ul li:last-child { border-bottom:none; }
    	.score { float:right; }

    I’m sorry I’m stupid, that was not what i needed to look for it was this:

    <span class="item-review"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="<?php the_title(); ?> Overall Score" /></span>
    <?php endif; ?>

    This is in index.php and this is the thing that pops up on thumbnail…

    so how wouldi get the id of the post and display if there is, if there is or isnt and display the little picture that ur plugin shows with votes.

    Vova – yes i tried to activate the plugin for excerpts with no luck.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Star ratings in blog list’ is closed to new replies.