I have this code:
<?php $fields = acf_get_fields('56');
?>
<?php if( $fields )
{
foreach( $fields as $field)
{
$value = get_field( $field['name'] );
if ($value) {
echo '<dl>';
echo '<dt>' . $field['label'] . '</dt>';
echo '<dd>' . $field['value'] . '</dd>';
echo '</dl>';
}
}
}
?>
Everything works, except for retrieving the VALUE. I can’t get the value. Can someone help me with getting the value per field in the foreach?