• 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?

    https://wordpress.org/plugins/top-10/

Viewing 1 replies (of 1 total)
  • Plugin Author Ajay

    (@ajay)

    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 );
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Star Rating inside widget’ is closed to new replies.