There was never a %THUMBNAIL% in the plugin. Probably you modify yourself?
I read somewhere, that you can add this %THUMBNAIL% and that worked, it actually showed the thumbnail in widget of every post. But after the update, it’s no longer working.
Is there a possibility to make somehow to show a thumbnail in a widget?
With regards,
dkStudio.
I have no intention of adding it now, but feel free to contribute to the code https://github.com/lesterchan/wp-postratings =)
if (strpos($template, ‘%THUMBNAIL%’) !== false) {
if ($post->ID != $post_id) {
$post = &get_post($post_id);
}
$value = str_replace(“%THUMBNAIL%”, get_the_post_thumbnail($post->ID, ‘thumbnail’), $value);
}
That’s the code, which was in the previous version of the plugin 🙂
Cannot edit in github, because I’m not registered there. It should be on the line 1248 🙂