Home Forums Front-end Issues Split: Template Code doesn't work Reply To: Split: Template Code doesn't work

  • Hi @caju

    New topics are only allowed to be added from Monday to Friday. In the future, please do not jump onto another thread and post your question. Instead, wait until the support forum hours are open.

    As for your question, the file field does not return the filesize data. I’ll add this to the to-do, but for now, you can load it like so:

    $attachment = get_field(’tile_package’);
    $filesize = size_format(filesize( get_attached_file( $attachment['ID'] ) ));