WordPress Chinese Forums's Archiver

周董 发表于 2008-9-28 19:06

求助下高手 装wp-postviews插件 代码插入出错

我装了
wp-postviews插件

要在 index.php当中 插入 这段代码[code]<?php if(function_exists('the_views')) { the_views(); } ?>[/code]我的
index.php
[quote]<?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('阅读这篇文章的其余部分 &raquo;'); ?>
    </div>
    <div class="post-info"> <span class="post-cat">
      <?php the_category(', ') ?>
      </span> <span class="post-comments">
      <?php comments_popup_link('发表评论 &raquo;', '1 条评论 &raquo;', '% 条评论 &raquo;'); ?>
      </span> </div>
  </div>
  <?php endwhile; ?>
  <div class="navigation"> <span class="previous-entries">
    <?php next_posts_link('&laquo; 较旧文章') ?>
    </span> <span class="next-entries">
    <?php previous_posts_link('较新文章 &raquo;') ?>
    </span> </div>
  <?php else : ?>
  <h2 class="center">没有内容</h2>
  <p class="center">抱歉,您要找的东西不在这里。</p>
  <?php endif; ?>
</div>
<!--/content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
[/quote]

我要在[code]<?php comments_popup_link('发表评论 &raquo;', '1 条评论 &raquo;', '% 条评论 &raquo;'); ?>[/code]这个之前插入
请问 应该添加的代码是多少啊


我不怎么懂 CSS
插入代码 后 首页就变形
试了一个多小时了
[qq]272761777[/qq]请问应该插入的代码是多少啊

[[i] 本帖最后由 周董 于 2008-9-28 19:07 编辑 [/i]]

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.