Show row number
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
<table class="wp-list-table widefat striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>N</th>
|
||||
<th>First Name</th>
|
||||
<th>Last Name</th>
|
||||
<th>Country</th>
|
||||
@@ -24,9 +25,10 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php foreach ($entries as $e): ?>
|
||||
<?php foreach ($entries as $i => $e): ?>
|
||||
|
||||
<tr>
|
||||
<td> <?= $i + 1 ?> </td>
|
||||
<td> <?= esc_html($e->first_name) ?> </td>
|
||||
<td> <?= esc_html($e->last_name) ?> </td>
|
||||
<td> <?= esc_html($e->country) ?> </td>
|
||||
|
||||
Reference in New Issue
Block a user