WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. damon79
    Member
    Posted 2 months 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?

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

  2. Ajay
    Member
    Plugin Author

    Posted 2 months 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 );
    }

Reply

You must log in to post.

About this Plugin

About this Topic