Support

Account

Home Forums ACF PRO Field always returns NULL Reply To: Field always returns NULL

  • Hi there, I could not get this to work with my code. Can you help? How could I get the values?

           <?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>';
        }
    } 
    
    } 
    ?>