WP-PageNavi 的安装问题求助
我想装个分页的插件! 请问红色部分代码该放到footer.php 的什么位置呢?谢谢! 放在倒数第二行有点问题 谢谢以下为footer.php完整代码 红色部分是我添加的WP-PageNavi 代码
</div><!--#main-->
<div id="footer">
<div class="wrapper">
<span class="copyright">© 两个朋友之家. All Rights Reserved.</span>
<span class="links">
<a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>" class="rss entries">Entries <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a>
<a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>" class="rss">Comments <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a>
<a href="<?php bloginfo('url'); ?>/wp-admin/" title="User Area" class="login">Login</a>
<a href="[url=http://www.potsun.com/bbs]http://www.potsun.com/bbs[/url]" class="powered"><img src="<?php bloginfo('template_directory'); ?>/img/cubes.gif" alt="Open Source" /></a>
</span>
</div>
</div><!--#footer-->
</div><!--#root-->
</div></div><!--end lines-->
<div id="img-cache"><img src="<?php bloginfo('template_directory'); ?>/img/archive-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/blogroll-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/popular-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/nav-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/cat-hover.gif" alt="" /></div>
[color=red]<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>[/color]
</body>
</html> <div style="margin:0 auto; text-align:center;"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
</div><!--#main-->
<div id="footer">
<div class="wrapper">
<span class="copyright">© 两个朋友之家. All Rights Reserved.</span>
<span class="links">
<a href="<?php bloginfo('rss2_url'); ?>" title="<?php _e('Syndicate this site using RSS'); ?>" class="rss entries">Entries <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a>
<a href="<?php bloginfo('comments_rss2_url'); ?>" title="<?php _e('The latest comments to all posts in RSS'); ?>" class="rss">Comments <?php _e('<abbr title="Really Simple Syndication">RSS</abbr>'); ?></a>
<a href="<?php bloginfo('url'); ?>/wp-admin/" title="User Area" class="login">Login</a>
<a href="http://www.potsun.com/bbs" class="powered"><img src="<?php bloginfo('template_directory'); ?>/img/cubes.gif" alt="Open Source" /></a>
</span>
</div>
</div><!--#footer-->
</div><!--#root-->
</div></div><!--end lines-->
<div id="img-cache"><img src="<?php bloginfo('template_directory'); ?>/img/archive-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/blogroll-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/popular-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/nav-hover.gif" alt="" /><img src="<?php bloginfo('template_directory'); ?>/img/cat-hover.gif" alt="" /></div>
</body>
</html> 好像有点问题哦!显示到most views 下面了![url=http://www.potsun.com]www.potsun.com[/url]
我想要的是这样的[attach]5105[/attach]
[[i] 本帖最后由 psdty 于 2008-9-30 22:26 编辑 [/i]] 放到index中
<?php get_header(); ?>
<div id="main-block">
<div id="content">
<?php if (have_posts()) : ?>
<ul>
<?php while (have_posts()) : the_post(); ?>
<li class="post" id="post-<?php the_ID(); ?>">
<div class="content">
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="post-date">
<div class="month"><?php the_time('M') ?></div>
<div class="day"><?php the_time('d') ?></div>
</div>
</div>
<div class="postdata">
<span class="category"><?php the_category(', ') ?></span>
<span class="date"><?php the_time('Y-m-d') ?> | <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?></span>
</div><!--.postdata-->
<div class="entry">
<?php the_content('Read more...'); ?>
</div>
<?php the_tags( '<p>Tags: ', ', ', '</p> ');?>
<?php if(function_exists('the_views')) { the_views(); } ?>
<div class="footer"><?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?> | <?php if(function_exists('the_views')) { the_views(); } ?> </div>
</div> </li>
<?php endwhile; ?>
</ul>
<div class="nav-entries">
<span class="prev"><?php next_posts_link('<span>« Previous Entries</span>') ?></span>
<span class="next"><?php previous_posts_link('<span>Next Entries »</span>') ?></span>
</div>
<?php else : ?>
<h2 class="t-center">Not Found</h2>
<p class="t-center">Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!--#content-->
<div style="margin:0 auto; text-align:center;"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?></div>
</div><!--#main-block-->
<?php get_sidebar(); ?>
<?php get_footer(); ?> 这个问题 的确很棘手 我弄好好久才弄好的的 稍微懂点代码其实很简单,无外乎,div,CSS OK了!谢谢!选 wordpress真是没选错呵呵!以前弄DVBBS遇到问题都去论坛都没人回答!郁闷!
你真是个大牛人呵呵!
这个参数我这样设置对吗?
[img]http://www.potsun.com/1.jpg[/img] 其实都是小问题,只是大家都觉得太简单,我才来答的。。哎
看一下我的吧 非常感谢!这种问题对于你们来说很简单 但是我们新手就很难了呵呵!
有你这样的大师wordpress才会更好发展!谢谢!这个论坛少了你不行啊!:D
又帮我解决掉一个问题了!^_^ 学习
:lol
页:
[1]