How can I get the number of custom post type posts that have a specific attachment image set?

I ended up figuring it out. I installed the wordpress plugin “Query Wrangler” which helped me build exactly what I was trying to figure out. What was the missing key was instead of the value being ” on the post where the custom field didn’t appear, I should have put ‘0’. Here’s the final working … Read more