WordPress.org

Ready to get started?Download WordPress

Forums

WP-PostRatings
Rating shows stacked up on homepage instead of under each post (1 post)

  1. BrunoMazereel
    Member
    Posted 1 year ago #

    Hey,

    In the screenshot here , you will see that the ratings all show up together outside the content, top left, instead of being in the posts. My site online has an index, no single pages, categories or archive).

    This is the code I have:

    <div class="loops-wrapper <?php echo $post_layout; ?>">
    
    				<?php while (have_posts()) : the_post(); ?>
    
    					<?php if(is_search()): ?>
    						<?php get_template_part( 'includes/loop' , 'search'); ?>
    					<?php else: ?>
    						<?php get_template_part( 'includes/loop' , 'index'); ?>
    					<?php endif; ?>
    
    				<?php endwhile; ?>
    
    			</div>

    According to the manual, this piece of code should be inserted like this:

    <div class="loops-wrapper <?php echo $post_layout; ?>">
    
    				<?php while (have_posts()) : the_post(); ?>
    <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
    					<?php if(is_search()): ?>
    						<?php get_template_part( 'includes/loop' , 'search'); ?>
    					<?php else: ?>
    						<?php get_template_part( 'includes/loop' , 'index'); ?>
    					<?php endif; ?>
    
    				<?php endwhile; ?>
    
    			</div>

    But that doesn't do the trick, like you can see (here).
    Please advise. Thanks.

    http://wordpress.org/extend/plugins/wp-postratings/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.