不知道爲什麼,但我似乎無法得到在我的wordpress檔案模板文件中工作的頁面導航。想知道是否有人也許能導致我在這裏向正確的方向...WordPress的檔案頁面導航不起作用
下面的代碼:
<?php if (have_posts()) : ?>
<div class="pageDescriptBracket">
<img src="<?php bloginfo('template_url'); ?>/images/pdBracket.png">
</div> <!-- pageDescriptBracket -->
<h1>The Books</h1>
<div class="pageDescriptSmall">
An archive of the condominium's financial records
</div> <!-- pageDescriptSmall -->
<?php
$the_query = new WP_Query(array(
'posts_per_page' => 1)); // how many posts to show
while ($the_query->have_posts()) :
$the_query->the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entryBooks">
<h2><?php the_title(); ?></h2>
<?php the_content(); ?>
</div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<?php endif; ?>
<div class="postnav">
<div class="alignleft"><?php posts_nav_link('','','« Previous Entries') ?></div>
<div class="alignright"><?php posts_nav_link('','Next Entries »','') ?></div>
</div>
它做錯了什麼? – ebohlman 2013-03-18 13:46:48
它根本沒有出現。 – 2013-03-19 05:05:46