Loop through repeater rows to display upload files with title with ACF

How to loop through repeater rows to display upload files with title with Advanced Custom Fields Pro plugin in template file.

In the WordPress administration:

  • Create field of type Repeater
  • Create Sub field (in our case named event_file) of field type file and set return type to File array
  • Associate custom fields to desired CTP, post or page
  • Create CTP, post or page and add row and add as many files as you need, and make sure to set the title of each, since that is what will be displayed

In template file:

Facebooktwittergoogle_pluslinkedinmail

by Norm Euker