Support

Account

Home Forums ACF PRO Display specific text when field is empty Reply To: Display specific text when field is empty

  • 
    $youtubevideo_code = get_field('video_link', $post_id);
    if ($youtubevideo_code) {
      // show video
    } else {
      // show no video message
    }