Support

Account

Home Forums General Issues when value is empty it shows lable name Reply To: when value is empty it shows lable name

  • Hi Javadth,

    Sorry for the delay. You can add simply a <br> the way below:

    <?php
    $field = get_field_object('sors');
    $value = $field['value'];
    if (!empty($value)){
        echo '<p>'.$field['label'].' : <br> '.$value.'</p>';
    }
    ?>