|
我都是了好多方法了,都不行啊
wp-pagenavi 激活后应该不用设置的吧,只要加代码吧?但是我就不知道加载哪里啊
附上index.php
我都是了好多方法了,都不行啊
wp-pagenavi 激活后应该不用设置的吧,只要加代码吧?但是我就不知道加载哪里啊
附上index.php- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <div class="post" id="post-<?php the_ID(); ?>">
- <h2 class="pagetitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="ermanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <small class="subtitle"><?php the_time('m.d.Y') ?> by <?php the_author() ?><?php edit_post_link('Edit', ' - ', ''); ?> - <?php comments_popup_link('0 Comment', '1 Comment', '% Comments'); ?><br />osted in <?php the_category(', ') ?></small>
- <div class="entry">
- <?php the_content('Read the rest of this entry »'); ?>
- </div>
- <p class="postmetadata"><?php the_tags('Tag after ', ', ', ''); ?></p>
- </div>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
- </div>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php include (TEMPLATEPATH . "/searchform.php"); ?>
- <?php endif; ?>
- </div>
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
复制代码 谢谢了 |
|