Support » Plugin: Top 10 - Popular posts plugin for WordPress » Star Rating inside widget

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

Viewing 1 replies (of 1 total)
  • Plugin Author 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.