Support

Account

Home Forums Add-ons Gallery Field Use files in Gallery field Reply To: Use files in Gallery field

  • Hi John,
    Here is my application:

    <?php $files = get_field('files');
    
    foreach( $files as $file ): ?>
    	<li>
    		<a href="<?php echo $file['url']; ?>">
    			 <?php echo $file['title']; ?>
    		</a>
    	</li>
    <?php endforeach; ?>

    It works (see attachments), but I don’t know if it will eventually produce errors afterwards.