The problem is mainly that what you’re looking for is all the custom field values for a specific custom field for all the posts on the site. This is problematic using any of the standard WP functions. There is nothing in WP that will return this information without using
My solution is pretty quick and a bit dirty, but should work in most cases and be safe to use. For example, I’m not using a JOIN on the posts table, so my query will return values set for any type of post, including drafts and trash or whatever but 99% of the time that should not matter, unless you’ve recently trashed all of the posts of a language or just started creating drafts of a new language. I’m not really an expert on
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.