Home Forums General Issues Fetching default image option Reply To: Fetching default image option

  • Short of this you’ll need to resort to

    $image = get_field('image');
    if (!$image) {
      // code here to set $image to default value
      // you can probably use get_field_object($field_key)
      // end get the setting for default_value

    but it would probably be much easier to just use the key in get_field in the first place.