我装了
wp-postviews插件
要在 index.php当中 插入 这段代码
复制内容到剪贴板
代码:
<?php if(function_exists('the_views')) { the_views(); } ?>我的
index.php
引用:
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<div class="entry">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="到《<?php the_title(); ?>》的永久链接">
<?php the_title(); ?>
</a></h2>
<span>作者:
<?php if (get_the_author_url()) { ?>
<a href="<?php the_author_url(); ?>">
<?php the_author(); ?>
</a>
<?php } else { the_author(); } ?>
时间:
<?php the_time('Y年m月d日 l') ?>
</span> </div>
<div class="post-content">
<?php the_content('阅读这篇文章的其余部分 »'); ?>
</div>
<div class="post-info"> <span class="post-cat">
<?php the_category(', ') ?>
</span> <span class="post-comments">
<?php comments_popup_link('发表评论 »', '1 条评论 »', '% 条评论 »'); ?>
</span> </div>
</div>
<?php endwhile; ?>
<div class="navigation"> <span class="previous-entries">
<?php next_posts_link('« 较旧文章') ?>
</span> <span class="next-entries">
<?php previous_posts_link('较新文章 »') ?>
</span> </div>
<?php else : ?>
<h2 class="center">没有内容</h2>
<p class="center">抱歉,您要找的东西不在这里。</p>
<?php endif; ?>
</div>
<!--/content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
我要在
复制内容到剪贴板
代码:
<?php comments_popup_link('发表评论 »', '1 条评论 »', '% 条评论 »'); ?>这个之前插入
请问 应该添加的代码是多少啊
我不怎么懂 CSS
插入代码 后 首页就变形
试了一个多小时了

请问应该插入的代码是多少啊
[
本帖最后由 周董 于 2008-9-28 19:07 编辑 ]