Support

Account

Home Forums General Issues File field type: what is return value?

Helping

File field type: what is return value?

  • Hello,
    I use a file field type and I was wondering what are the differences between 3 RETURN VALUE choices (array, file URL, attachment ID)?
    Cheers;

  • the difference is what you get when you use get_field

    try to look yourself

    $value = get_field('your_file_field_name');
    echo '<pre>';
    print_r( $value );
    echo '</pre>';

    it is either a ID, a URL, or a array that contains both and probably even more infos

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘File field type: what is return value?’ is closed to new replies.