But this works when the field type returns a specific value. How do we count when the field type has multiple selections, and we want to specify one of those selections?
Secondly, the count of *all* posts of a certain post type?
Thanks for any pointers. I don’t mind writing raw SQL if needed, because that’ll give us more control. Our templates are cached, so query speed is not an issue either. We just need to know how to join the appropriate tables so we get the meta values.