Is it possible to filter based on a meta field? To be more specific, I'd like to filter on the count.
Eg. let's say I have a Post and I want to find all posts that have more than 10 comments. Is something like that possible? In my particular case I'd also be sufficient to only check for a specific count, eg. filter all Posts that have exactly 5 comments.
If that's not possible I guess a workaround would be to add the count with a pre write hook, or is there a better way?