Skip to content

Instantly share code, notes, and snippets.

@zohaib87
Last active June 7, 2022 15:03
Show Gist options
  • Save zohaib87/71ca0f36a84ad8f6548a4742af0e8225 to your computer and use it in GitHub Desktop.
Save zohaib87/71ca0f36a84ad8f6548a4742af0e8225 to your computer and use it in GitHub Desktop.
Example for "Imran Irshad"
<?php $get_rates_list = get_field('rates');
if ($get_rates_list) { ?>
<table class="rates-table">
<thead>
<?php foreach ($get_rates_list as $rate) { ?>
<tr>
<td><h3 class="rate_label"><?php echo $rate['rate_title'];?></h3></td>
</tr>
<?php } ?>
</thead>
<tbody>
<?php foreach ($get_rates_list as $rate) { ?>
<tr>
<td><span class="rate_value"><?php echo $rate['incall'];?></span></td>
<td><span class="rate_value"><?php echo $rate['outcall'];?></span></td>
</tr>
<?php } ?>
</tbody>
</table>
<?php }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment