Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All fields #38

Open
benrolfe opened this issue May 25, 2017 · 2 comments
Open

All fields #38

benrolfe opened this issue May 25, 2017 · 2 comments

Comments

@benrolfe
Copy link

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
Copy link
Member

jgrossi commented May 25, 2017

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
Copy link

Check out solution on #49

Cheers,
David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants