Hi @pero
I’m afraid acf_get_fields() will always return an empty value. Instead, please use the get_field() function to get the value like this:
$groups = acf_get_field_groups(array('post_id' => get_the_ID()));
foreach( $groups as $group_key => $group ) {
$fields = acf_get_fields($group);
if($fields ) {
foreach( $fields as $field_name => $field ){
echo get_field($field['name']);
}
}
}
Hope this helps!