Home Forums General Issues Using an underscore to get a subfield


Using an underscore to get a subfield

  • I was wondering if querying subfields using an underscore was supported, since I haven’t found anything in the documentation.

    For example, if I have a group field called group with a child subfield, I can query the subfield using get_field('group_child'); and it works correctly.

    I wanted to make sure whether it’s safe to use it like that or it’s not recommended, in case it’s ever removed in an update or something.


  • Yes, this is a safe way to get this type of field.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.