corcel / acf

Advanced Custom Fields (ACF) plugin for Corcel
127 stars 100 forks source link

All fields #38

Open benrolfe opened 7 years ago

benrolfe commented 7 years ago

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

jgrossi commented 7 years ago

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

drosendo commented 7 years ago

Check out solution on #49

Cheers, David