Home › Forums › General Issues › Directly get value in group sub-field › Reply To: Directly get value in group sub-field
Hi Guzart!
You can get your sub field like this:
First of all, get your group of fields
$group_values = get_field('group_name'); // use get_field('group_name', 'options') if your field is in a global page options
(‘option’) work too
Now you have your fields, display your title with $group_values['title']
Cheers
Sam
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.