Home › Forums › General Issues › How to output a cloned Group field, with the clone display of Group › Reply To: How to output a cloned Group field, with the clone display of Group
Figured out a solution that works! Was actually much simpler than I was thinking it was, Here is an example:
<?php
$clone_var = get_sub_field( 'clone_field_name' );
$group_var = $clone_var['group_field_name'];
if( $group_var ) :
$field_var = $group_var['field_name'];
echo $field_var;
endif;
?>
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.