Home › Forums › Add-ons › Flexible Content Field › Access Nested Flexible Content using get_post_meta › Reply To: Access Nested Flexible Content using get_post_meta
The layout name is not part of the meta key, I’m not sure about your code but it might be
$column_module = get_post_meta( $post_id, 'section_layout_'.$count.'_single_col_elements_content_type', true );
A nested flex field, or fields would be something like
"{$flex_field_name}_{$index}_{$nested_flex_name}_{$index}_{$sub_field_name}"
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.