acf
acf copied to clipboard
All fields
Is there a way of returning all custom fields attached to the post, with one line of code?
The equlivant of get_fields()
in the official ACF plugin https://www.advancedcustomfields.com/resources/get_fields/.
Maybe $post->acf->fields()
.
Hi @benrolfe! Good call! But unfortunately, that's not possible. It's not something hard to implement, but currently there's no way of getting all fields at the same time. JG
Check out solution on #49
Cheers, David