acf icon indicating copy to clipboard operation
acf copied to clipboard

All fields

Open benrolfe opened this issue 7 years ago • 2 comments

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().

benrolfe avatar May 25 '17 07:05 benrolfe

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

jgrossi avatar May 25 '17 15:05 jgrossi

Check out solution on #49

Cheers, David

drosendo avatar Aug 31 '17 09:08 drosendo