fix page results count
This commit is contained in:
parent
4fcd021cb7
commit
4c62fafeb9
3 changed files with 7 additions and 15 deletions
|
|
@ -51,8 +51,9 @@ get_header();
|
|||
<?php
|
||||
global $wp_query;
|
||||
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
||||
$post_start = ($wp_query->found_posts - $wp_query->post_count);
|
||||
echo "Anzeige der Ergebnisse <strong>" . $post_start . " bis " . $wp_query->post_count . "</strong> von insgesamt <strong>" . $wp_query->found_posts. "</strong>";
|
||||
$post_count_start = (($paged -1) * 10) + 1;
|
||||
$post_count_end = ((($paged -1) * 10) + $wp_query->post_count);
|
||||
echo "Anzeige der Ergebnisse <strong>" . $post_count_start . " bis " . $post_count_end . "</strong> von insgesamt <strong>" . $wp_query->found_posts. "</strong>";
|
||||
?>
|
||||
</p>
|
||||
<!-- render the anchor-links to the sections inside the displayed result rows -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue