Support » Plugin: GD Rating System » Show featured image on widget

  • alloc7



    I am using the widget to display Top Rated posts and I would like it to display the featured image (thumbnail) of the post. Right now it is only displaying the title and rating. Is that possible?

    Thank you

Viewing 1 replies (of 1 total)
  • Plugin Author Milan Petrovic


    Yes, it is. By default, widget uses ‘gdrts–stars-rating–list–widget.php’ template. Copy this template to your active theme folder and modify to show the thumbnail. Modifications should go into the loop inside the LI tag block. You need post ID, and this post ID is available as:

    <?php $post_id = gdrts_list()->item()->id; ?>


Viewing 1 replies (of 1 total)
  • The topic ‘Show featured image on widget’ is closed to new replies.