Home › Forums › Add-ons › Repeater Field › Display Title of File in href using Repeater › Reply To: Display Title of File in href using Repeater
Hi @udapud
Your code will not work because you are using get_sub_field OUTSIDE of the has_sub_field loop.
It MUST be used within the loop, otherwise, how would your code know which row to fetch the data from?!
Please read over the docs for more information about the functions you are using
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.