Pagination
This commit is contained in:
parent
506dc0515d
commit
f8c64feb11
1 changed files with 2 additions and 2 deletions
|
@ -186,12 +186,12 @@ echo '<p>Images ('. $total_photos . ')</p>';
|
||||||
if ($current_page == $i) {
|
if ($current_page == $i) {
|
||||||
echo '<span class="page-numbers'. $current . '">'. $i . '</span>';
|
echo '<span class="page-numbers'. $current . '">'. $i . '</span>';
|
||||||
} else {
|
} else {
|
||||||
echo '<a class="page-numbers" href="?post_id=<?php echo $post_id ?>&type=image&tab=openphoto&pg='. $i . '">'. $i . '</a>';
|
echo '<a class="page-numbers" href="?post_id=' . $post_id . '&type=image&tab=openphoto&m=' . $m . '&pg='. $i . '">'. $i . '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($current_page < $total_pages)
|
if ($current_page < $total_pages)
|
||||||
{
|
{
|
||||||
echo '<a class="next page-numbers" href="/wp-admin/media-upload.php?post_id='. $post_id . '&type=image&tab=openphoto&pg='. ($current_page+1) . '">»</a>';
|
echo '<a class="next page-numbers" href="?post_id='. $post_id . '&type=image&tab=openphoto&m=' . $m . '&pg='. ($current_page+1) . '">»</a>';
|
||||||
}
|
}
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue