WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
404 error in the tags (1 post)

  1. boec
    Member
    Posted 2 years ago #

    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(); ?>

    Here for example - page2 not found: http://wowbattle.ru/tag/dragon-soul

    Sorry for my english =\

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic