$table = get_field( 'point-table' );
if ( ! empty ( $table ) ) {
echo '
';
if ( ! empty( $table['caption'] ) ) {
echo '' . $table['caption'] . '';
}
if ( ! empty( $table['header'] ) ) {
echo '';
echo '';
foreach ( $table['header'] as $th ) {
echo '';
echo $th['c'];
echo ' | ';
}
echo '
';
echo '';
}
echo '';
foreach ( $table['body'] as $tr ) {
echo '';
foreach ( $tr as $td ) {
echo '';
echo $td['c'];
echo ' | ';
}
echo '
';
}
echo '';
echo '
';
}
?>