Hi,
I noticed that the widget is not showing any ratings for the attachments. I did some investigation and I noticed the attachments don’t have the publish status but an inherit status. This is why the widget isn’t showing them.
The query for the widgets only looks for items with the status publish
So in postratings-stats i replaced all:
AND $wpdb->posts.post_status = 'publish'
into
AND ($wpdb->posts.post_status = 'publish' || $wpdb->posts.post_status = 'inherit')
This fixes the issue for me. But is it possible to get this in the plugin itself fixed so I don’t have to do this with every update?
https://wordpress.org/plugins/wp-postratings/