rkvr_rate

Description

This template tag allows you to manually place the ratings bar in your theme’s template files. It is set to look for the post_id, so if using it on a template with multiple posts (i.e. an archives listing) make sure to use it within the loop.

Usage

Basic Placement

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<!-- area before the rating, usually the title -->
     <?php echo rkvr_rate(); ?>
<!-- area after the rating, usually the title -->
<?php endwhile; endif; ?>

Used with the_content filter

add_filter('the_content', 'rk_custom_placement' );

function rk_custom_placement( $content ) {
	// change this conditional check for whatever your
	// specific need is
	if ( !is_page( 'about' ) )
		return $content;

	$buttons = rkvr_rate();

	return $buttons.$content;
}