How to get_posts having post thumbnail?