Home › Forums › Front-end Issues › How to get current ACF fields using by post ? › Reply To: How to get current ACF fields using by post ?
Hi @sabbas
I’m afraid get_fields_object()
will show all the fields that exist in the database for the current post. It’s not based on the location rule.
If you want, you can get the fields object by use the group ID like this:
$fields = acf_get_fields(99);
Where “99” is the group ID.
I hope this helps 🙂
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.