Wordpress plugins
Advanced Custom Fields: Table Field

Advanced Custom Fields: Table Field

Version : 1.2
Tested up to : 4.8.2
Number of download : 48171
Author : Johann Heyne
Average rating : 5 / 5 on 34 votes 34 votes, 5 avg.rating

Screenshots

Advanced Custom Fields: Table Field
Advanced Custom Fields: Table Field
Advanced Custom Fields: Table Field
Advanced Custom Fields: Table Field

The Table field plugin enables easily editing a table. The plugin is compatible with ACF4 and ACF5. The table field works also with the repeater and flexible field types. table header (option) add and remove table columns and rows change order of columns and rows by dragging To display the table fields data as an html table you can start with the following code. $table = get_field( 'your_table_field_name' ); if ( $table ) { echo '<table border="0">'; if ( $table['header'] ) { echo '<thead>'; echo '<tr>'; foreach ( $table['header'] as $th ) { echo '<th>'; echo $th['c']; echo '</th>'; } echo '</tr>'; echo '</thead>'; } echo '<tbody>'; foreach ( $table['body'] as $tr ) { echo '<tr>'; foreach ( $tr as $td ) { echo '<td>'; echo $td['c']; echo '</td>'; } echo '</tr>'; } echo '</tbody>'; echo '</table>'; }

Download now