Quantcast
Channel: WordPress.org Forums
Viewing all articles
Browse latest Browse all 46187

boec on "[Plugin: WP-PageNavi] 404 error in the tags"

$
0
0

WP-PageNavi works correctly on the homepage, categories and page author.
But with the tags it does not work - 404 error.

<?php if (is_archive()) $post_number = get_option('wowbattle_archivenum_posts');
if (is_search()) $post_number = get_option('wowbattle_searchnum_posts');
if (is_tag()) $post_number = get_option('wowbattle_tagnum_posts');
if (is_category()) $post_number = get_option('wowbattle_catnum_posts'); ?>

<?php query_posts($query_string . "&showposts=$post_number&paged=$paged&cat=$cat"); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>		

<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
<?php else : ?>
<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
<?php endif; wp_reset_query(); ?>

Sorry for my english =\

http://wordpress.org/extend/plugins/wp-pagenavi/


Viewing all articles
Browse latest Browse all 46187

Latest Images

Trending Articles



Latest Images