Support

Account

Home Forums Front-end Issues Can't find the full list of File returns

Solved

Can't find the full list of File returns

  • My ACF file has a return array of about 20 data points, but I can only find file size, title, url, mime_type, and the basic ones. Does the full list exist?

    The example list is (from docs):

    $url = $file[‘url’];
    $title = $file[‘title’];
    $caption = $file[‘caption’];
    $icon = $file[‘icon’];

    But I can see the full list (here) is much longer. Where do I find the full list of the data points returned?

  • Hi @toymachine ,

    You could do something like:

    echo '<pre>';
    print_r($file);
    echo '</pre>';

    I think that should give you a list of all the array options linked to the file field.

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

You must be logged in to reply to this topic.