Hi Alex!
Yep, that’s because WPP queries the database for post type(s) with status publish(ed), while the attachment post type uses the status inherit.
WPP registering views count for attachments is actually an accident ?? I’ve been aware of that for quite a while and decided to leave it as it is since a couple of users out there had the same idea as you (show a list of the most popular attachments).
Since there’s no way to programmatically tell WPP to retrieve posts with a different status than publish, if you want to display the most viewed attachments you’ll have to mod WPP:
- Go to Plugins > Editor and pick WordPress Popular Posts from the dropdown at the right.
- Find this line and change the ‘publish’ bit to ‘inherit’.
- Hit the Update file button to apply changes.
Note that this is only a temporary workaround. When updating plugins, WordPress overwrites all the old files with the new ones and so any customizations made directly into plugin’s code will be lost. Also, in WPP’s case I’m currently refactoring its code which means that the mod above will be outdated soon (I’m pointing this out for future visitors, just in case).
I’ll consider adding a status parameter/option on a future release, shouldn’t be too hard to implement.