Home › Forums › Front-end Issues › Nested Repeater Variable Only Returning Only One URL › Reply To: Nested Repeater Variable Only Returning Only One URL
Sorry, I have just joined the forums but I’ve noticed the same error with the first look I threw at your code.
$tracks = "a simple variable";
If you want to store tracks, then you should declare it as an array.
$tracks = array();
// now you should fill the array with data within your loop like this
$tracks[] = "some value";
Remember, when you want to retrieve values, you need to loop through the $tracks
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.