Home › Forums › Add-ons › Flexible Content Field › Get flexible layout field subfield outside loop › Reply To: Get flexible layout field subfield outside loop
Thanks John
That will be like using the get_field_object('some_field_name')
function on the page, meaning it will retrieve the entire field object – with all the subfields.
I’am looking for something more simple (if possiable). Something like
the_sub_field('sub_field')
– but that can only work inside the loop.
if only there was get_some_subfeild(field-name, subfield-name, subfiled_index/id')
..
is there a way to get a subfield directly using his ID or something?
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.