Empty Table Showing
-
I am having the same issue as this user: https://wordpress.org/support/topic/hide-table-if-there-is-no-content?replies=4
I see some one said it was fixed in a new update, however I am still having the same issue, the first cell is displaying even if it is empty. Am I missing something? I have added a custom header, but removing that does not solve the issue.
$table = get_field( 'available_space' ); if( $table) { echo '<table border="0">';?> <thead><tr><th>Suite</th><th>Sq. Ft.</th><th>Availability</th><th>Plan</th><th>Contact</th></tr></thead> <?php 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>'; } else { echo 'For current availabilities, please use our Information Request form.'; }https://wordpress.org/plugins/advanced-custom-fields-table-field/
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The topic ‘Empty Table Showing’ is closed to new replies.