Top 10 - Popular posts plugin for WordPress
Star Rating inside widget (2 posts)

  1. damon79
    Posted 1 year ago #

    I have this code that I generally enter into widgets to add my star KK star rating.

    <?php if(function_exists('kk_star_ratings')): echo kk_star_ratings($pid); endif; ?>

    I have tried a few areas in the code for the top10 widget however I am not sure where to put it.

    basically I want to have the articles/posts star rating below the title, as I don't have excerpts displaying.

    Can I add this to the top-10.php file and if so, where?


  2. Ajay
    Plugin Author

    Posted 1 year ago #

    You can put the code before the line (452):

    $output .= $after_list_item;

    It should be something along the lines of:

    if ( function_exists( 'kk_star_ratings' ) ) {
    $output .= kk_star_ratings( $result->ID );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic