我已经安装了wp\\u分页插件,它在页面底部似乎工作正常,但是分页没有显示在页面顶部。以下是模板代码:
<?php
/*
Template Name: Press
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<header class="page-header">
<h1 class="entry-title"><?php wp_title(); ?></h1>
</header>
<?php if(function_exists(\'wp_paginate\')) {
wp_paginate(\'range=4&anchor=2&nextpage=Next&previouspage=Previous\');
} ?>
<?php
query_posts( array( \'posts_per_page\' => 6, \'cat\' => 16, \'paged\' => get_query_var(\'paged\') ) );
while (have_posts()) : the_post();
?>
<div class="news-dir">
<h3><a href="<?php echo get_permalink(); ?>"><?php the_title();?></a></h3>
<?php
global $more; // Declare global $more (before the loop).
$more = 0; // Set (inside the loop) to display content above the more tag.
the_content("More...");
?>
</div>
<?
endwhile;
?>
<?php if(function_exists(\'wp_paginate\')) {
wp_paginate(\'range=4&anchor=2&nextpage=Next&previouspage=Previous\');
} ?>
</div><!-- #content -->
</div><!-- #primary -->
为什么它在顶层不起作用?MTIA!