In case you are using a repeater, I would recommend that you use a the standard repeater loop to access the repeater rows.
// check if the repeater field has rows of data
if( have_rows('repeater_field_name') ):
// loop through the rows of data
while ( have_rows('repeater_field_name') ) : the_row();
// display a sub field value
// no rows found
If you just want the first row, you can introduce custom code to only pick the first row.
I hope this helps.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users