The WP PageNavi plugin will do at least part of what you want.
try this code:
<?php
echo 'post ' . (1+get_query_var('posts_per_page')*(get_query_var('paged')?get_query_var('paged')-1:0)) . ' to ' . ($wp_query->post_count+get_query_var('posts_per_page')*(get_query_var('paged')?get_query_var('paged')-1:0)) . ' of ' . $wp_query->found_posts . ' total';
?>
uses:
get_query_var('posts_per_page')
= your settings under dashboard – settings- – reading – Blog pages show at most [ ] posts;
get_query_var('paged')
= which paginated page you are on
$wp_query->post_count
= the actual number of posts on this paginated page;
$wp_query->found_posts
= number of all posts for this query.
Thread Starter
Niekje
(@niekje)
Thanks allot alchymyth, I really appreciate the help.
I tried out your code and it works fine for normal WordPress ‘posts’. Now I only need to figure out how I can set it up to work with the WordPress Shopp plugin. As far as I know that plugin does not use the normal ‘$wp_query’ but I will check that out later.
@vtxyzzy thanks for your answer but I know that plugin and it does not do what I need.
Kind regards