I want to find out if an attachment is used as post thumbnail in any post. I know how to do this with an rather ugly multi-sql query, but it feels like it should be much easier than using nested loops and sql queries.
Anyone know if I’m missing something, feels like it should be a core function.