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

  • Hello,

    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

    (@gdragon)

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

    Milan

    • This reply was modified 19 hours, 55 minutes ago by  Milan Petrovic.
    • This reply was modified 19 hours, 54 minutes ago by  Milan Petrovic.
    • This reply was modified 19 hours, 54 minutes ago by  Milan Petrovic.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.