Support

Account

Home Forums Front-end Issues Frontend display in table form Reply To: Frontend display in table form

  • 
    $fields = get_field_objects();
    if( $fields ) {
      ?>
        <table>
          <?php 
            foreach ($fields as $field_name => $field) {
              if ($field['value]) {
                ?>
                  <tr>
                    <td><?php echo $field['label']; ?></td>
                    <td><?php echo $field['value']; ?></td>
                  </tr>
                <?php 
              } // end if value
            } // end foreach field
          ?>
        </table>
      <?php 
    } // end if fields