Wordpress WP PageNavi插件gettinf 404错误。这是我的密码。
<?php $paged = (get_query_var(\'paged\')) ? get_query_var(\'paged\') : 1;
query_posts(array(
\'posts_per_page\' => 3,
\'paged\' => $paged
)
); ?>
<?php if(have_posts()) : while(have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php the_title(\'<h1 class="entry-title"><a href="\' . get_permalink() . \'" title="\' . the_title_attribute(\'echo=0\') . \'" rel="bookmark">\', \'</a></h1>\'); ?>
<?php endwhile; if(function_exists(\'wp_pagenavi\')) { wp_pagenavi(); } ?>
<?php wp_reset_query(); else : ?>
<p class="no-posts"><?php _e(\'Sorry, no posts matched your criteria\', \'example\'); </p>
<? php endif; ?>