Support

Account

Home Forums Add-ons Repeater Field Loops files with URL Reply To: Loops files with URL

  • OK, fixed it. Used this to output various details from file uploads:

    <?php if( have_rows('files-ra') ): ?>
     
    	
    	<?php while( have_rows('files-ra') ): the_row(); 
     
    		$file = get_sub_field('file');
    		$name = get_sub_field('file_name');
     
    		?>
     
    		<li>
     			<a href="<?php echo $file['url']; ?>"><?php the_sub_field('file_name'); ?></a>
    		</li>
     
    	<?php endwhile; ?>
     
    	</ul>
     
    <?php endif; ?>

    Thanks for the help