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'] ) ));
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.