Support

Account

Home Forums ACF PRO Options Page: First Use Reply To: Options Page: First Use

  • You need to check for and set default values because there are not values saved until the user saves the page. get_field() returns false when a value has not been saved yet.

    
    $variable = get_field('my_field', 'option');
    if (!$variable) {
      $variable = 'my_default_value';
    }