Support

Account

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 🙂