在得到鬼吐司的帮助后。。。我几乎看到了这个问题的曙光。使用这段代码,我可以查询post show。然而,我无法找出如何将其编码为与导航一起使用。谢谢鬼魂!
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<p class="post-date">
<span class="date-day"><?php the_time(\'j\') ?></span>
<span class="date-month"><?php the_time(\'M\') ?></span>
</p>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<div class="entry">
<?php the_excerpt(); ?>
</div>
<p class="metadata">Posted by <?php the_author() ?>.<?php edit_post_link(\'Edit\', \' |
\', \'\'); ?></p>
</div>
<?php endwhile; endif; ?>
<?php
global $wp_query;
$query = new WP_Query( \'cat=1\' );
$big = 999999999; // need an unlikely integer
echo paginate_links( array(
\'base\' => str_replace( $big, \'%#%\', esc_url( get_pagenum_link( $big ) ) ),
\'format\' => \'?paged=%#%\',
\'current\' => max( 1, get_query_var(\'paged\') ),
\'total\' => $wp_query->max_num_pages
) );
?>