Hi Elliot, thanks for the response! I’ve already seen these 2 pages, but I’m still having some troubl
1. I cant create a new topic, it gives me the message: The ACF support forum is closed to new topics at this time.
2. I’m using the FILE uploader, and, I can get file info, but. If I let the return url in OBJECT it gives me the “description” correctly, but not the “file size”. If I turn the return URL to ID it gives me the size, but the not the description…this is my code:
<?php if( get_field(’tile_package’) ) {
$image = wp_mime_type_icon(‘archive’);
$attachment_id = get_field(’tile_package’);
$url = wp_get_attachment_url( $attachment_id );
$title = get_the_title( $attachment_id );
$description = wp_get_attachment_metadata( $attachment_id );
$filesize = filesize( get_attached_file( $attachment_id ) );
$filesize = size_format($filesize, 2); // 2 é para 2 casas decimais, ficou mais legal e preciso do que 2 MB, qq coisa vc tira.
?>
and the ussage is:
<?php echo $image ?>
<?php echo $title; ?>
<?php echo $filesize; ?>
<?php echo $attachment_id [‘description’]; ?> *THIS ONE WORKS ONLY IF THE RETURN URL IS OBJECT*
This is the page I’m using it:
http://visualcue.com/tilelibrary/hello-world/
Thanks a million