$pagecount = get_query_var('paged') - 1;
$ppp = get_query_var( 'posts_per_page' );
$count = $total = $the_query->post_count;
$from = 0;
if ( 0 < $ppp ) {
$total = $the_query ->found_posts;
if ( 0 < $pagecount )
$from = $pagecount * $ppp;
}
echo '
';
printf(
'
%2$s%3$s / %1$s
',
$total,
( 1 < $count ? ($from + 1 . '-') : '' ),
($from + $count )
);
if(function_exists('wp_pagenavi')):
wp_pagenavi(array('query'=>$the_query));
endif;
echo '