I am having a tough time trying to figure out get the field if the row i need is a subfield of a subfield. So far I have this and it works fine for the most part except when I get to the subfield of subfield repeater
<?php
// check if the repeater field has rows of data
if( have_rows(‘pricing_table’ , ‘option’) ):
// loop through the rows of data
while ( have_rows(‘pricing_table’ , ‘option’) ) : the_row();
?>
<div class=”col-md-4 “>
<div class=’package’>
<div class=’name’><?php the_sub_field(‘title’,’option’); ?> </div>
<div class=’price’><?php the_sub_field(‘price’,’option’);?>
</div>
<div class=’description’>
<?php the_sub_field(‘description’,’option’);?>
</div>
The end result is something like this and this works
the title
$300.00 price
a bit about the item
Those are subfields to one repeater, In the same repeater I have another repeater for more info to be added as a ul/li list. The repeater is called “options” it should display 2 items as subfields like this but it wont work
<div class=’glyphicons’>
<?php the_sub_field(‘glyphicon’,’option’);?>
</div>
<div class=’listitems’>
<?php the_sub_field(‘listitem’,’option’);?>
</div>
The end result is something like this and this works
the title
$300.00 price
a bit about the item
glyph hardwood
glyph dye colored
glyph hand sanded
glyph coreholed
ect, ect, ect
So i am not sure how to write the sub-sub fields in this manner to get them to display. Can this be done ?