It is possible to output sub field’s values when a Bricks query loop’s type has been set to a ACF Repeater without writing code. This is built-in.
If you are looking to get/output the sub field’s value via code instead, simply using
get_sub_field() is not going to work [unless we loop through the entire
Here’s how the sub field values can be output in a Code element:
<?php // get the current row in the loop $acf_row = \Bricks\Query::get_loop_object(); // print_r( $acf_row ); echo $acf_row['details']; ?>
for example, sample output of
print_r( $acf_row );
Array ( [name] => Head Massage [details] => Dolor tempor irure irure aute pariatur. Aliqua mollit cillum ad elit. Elit aliquip fugiat reprehenderit incididunt deserunt. Aliqua qui magna amet proident fugiat ut exercitation exercitation enim sunt velit incididunt pariatur. )
Thank you Sridhar.
I was able to do this in an Archive but I wanted to do it in a Single Template. Between what I learned already and then seeing your post, I thankfully got it sorted.