Show row number

This commit is contained in:
2026-05-12 21:11:39 +02:00
parent 38a3a2153b
commit 9ef421eeb5
2 changed files with 6 additions and 4 deletions

View File

@@ -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>