WP_Query for Attachments not working as expected
From further tests it is now certain that WP_Query has been altered at some point in the last year to render it useless for searching attachments. As soon as you enter search criteria like categories or tags it always replaces the search for post type to: ‘.. IN ( post, page )’ or If you … Read more