<?php
$fields = get_field_objects();
if( $fields )
{echo ‘<table>’;
foreach( $fields as $field_name => $field )
{if ( $field[‘value’] <> »)
{if( is_array($field[‘value’]) )
{
echo ‘<tr>’;
echo ‘<th>’ . $field[‘label’] . ‘</th>’;
echo ‘<th>’ . implode(«,», $field[‘value’]) . ‘</th>’;
echo ‘</tr>’; }
else
{
echo ‘<tr>’;
echo ‘<th>’ . $field[‘label’] . ‘</th>’;
echo ‘<th>’ . $field[‘value’] . ‘</th>’;
echo ‘</tr>’;
}
}
} echo ‘</table>’;
}
?>