I'm trying to show the data inserted into custom post types in a table and I'm having trouble showing values in front end underneath each column i.e (Duration, Incall, Outcall)
<table class="rates-table">
<?php $get_rates_list = get_field('rates_optional');
if(get_rates_list){
foreach($get_rates_list as $rate){?>
<thead>
<tr>
<td><h3 class="inside-model-single">Duration</h3></td>
<td><h3 class="inside-model-single">Incall</h3></td>
<td><h3 class="inside-model-single">Outcall</h3></td>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td><span class="rate_value"><?php echo $rate['incall_1_hour'];?></span></td>
<td><span class="rate_value"><?php echo $rate['outcall_1_hour'];?></span></td>
</tr>
<?php }
}?>
</tbody>
</table>

