Home › Forums › ACF PRO › get all fields by group id › Reply To: get all fields by group id
I’m trying to get all fields of a specific group for a very long time now. What I need is to get all fields assigned to a specific custom post type, or if not possible, all fields inside a field group, either by the title or by the post id of the group. Or at least anyhow.
Could anyone please provide a few bits of code for this? I am almost at wits end. Please?
I can’t believe that there is no internal function for such a common task. Imagine to create a post from the front end, how to fill the appropriate acf fields? Or imagine a plugin setting, that defines something around this post creation, like which fields are visible? All these tasks need to know which fields are associated.
Every helping hand is truly appreciated.I searched through the documentation and the forums for several times, and I almost googled myself to death.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.