WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
Page navi doesnt work - 404 Error (1 post)

  1. roidelune
    Member
    Posted 2 years ago #

    Hi, first of all sorry my english,

    I'm building a theme based on twentyten theme. Everything is ok but page navi not working. I searched every topic, try every solution but not worked. Please help.

    Here is my code:

    <?php
    		$args = array(
    		'category_name' => 'test',
    		'post_status' 		=> 'publish',
    		'posts_per_page' 	=> 2,
    		'paged' 			=> (get_query_var('paged')) ? get_query_var('paged') : 1
    		);
    		query_posts($args);
    		?>
        	<?php while (have_posts()) : the_post(); ?>
    
    	--- Content ---
    
            <?php echo paginate_links( $args ) ?>
            <?php endwhile; ?>
        	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
        	<?php wp_reset_query(); ?>

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic