Support » Plugin: Reaction Buttons » [Plugin: Reaction Buttons] Display thumbnail in most clicked widget
4 years, 12 months ago
I have the widget displaying the title of the posts, but I also want the thumbnails (featured image) to be displayed. Can you tell me how/where to put that code? I have this code on my regular posts to show the thumbnail
<?php if ( has_post_thumbnail()) : ?>
” title=”<?php the_title_attribute(); ?>” >
<?php the_post_thumbnail( ‘category-thumb’ ); ?>
Thanks for your help!
4 years, 11 months ago
I’ll look into it.
I figured it out. But I have a new question. I have the widget that does most popular all time. Is there a way to do most popular today, this week, this month?
Thank you again for your time!
here is the code for the thumbnail part:
$html .= “<h1>ID) . “‘>” . $post->post_title . “</h1>” . get_the_post_thumbnail( $post->ID, ‘category-thumb’ ) . ‘ <span style=”color: #0099ff;”>(‘.$count.’)</span><p>Vote/Comments</p> ‘;