term_id ); // The first row should be column labels $labels = $data[0]; // Remove the first row to leave us with the actual data unset( $data[0] ); // Skip if there are no rows in the table if ( empty( $data ) ) return false; $output = '
| ' . $label . ' | '; endforeach; $output .= '
|---|
| ' . sp_array_value( $row, $key, '—' ) . ' | '; endforeach; $output .= '