Just to add, for @infoircary-com, your code is great, but I have come across a couple of deficiencies:
– if taxonomy is not the first location for the field, it won’t work
– if you’re expecting an image field to return an image object, you’ll only get an attachment ID
Those can both be worked around on a small scale but just thought I’d point it out, maybe we can work on enhancing the code to be more bulletproof if it’s not going to make it into ACF Core anytime soon 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users