对于Deepblue进行了如下的一些修改:
(1) menu的这个div只显示主页和pages,添加显示分类的list链接。
Home
<?php wp_list_pages('title_li=&depth=1&exclude='); ?>
修改为
Home
<?php wp_list_categories('include=3,4,5,6,7&title_li'); ?>
<?php wp_list_pages('title_li=&depth=1&exclude='); ?>
(2) 修改进入分类后的显示效果。原来进入某分类后显示的一部分文章title和内容,修改为只显示title的链接:
archive.php
<!--loop article begin-->
<?php while (have_posts()) : the_post(); ?>
<!--post title as a link-->
<h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<!--Post Meta-->
<div class="post-meta-top">
<div class="auth"><span>Posted by <strong><?php the_author_posts_link(); ?></strong></span></div>
<div class="date"><span><?php the_time('F j, Y'); ?></span></div>
<div class="clearboth"></div>
</div>
<!--optional excerpt or automatic excerpt of the post-->
<?php the_excerpt(); ?>
<!--Post Meta-->
<div class="post-meta-bottom">
<!--<?php if (function_exists('the_tags')) { ?><strong>Tags: </strong><?php the_tags('', ', ', ''); ?><br /><?php } ?>-->
<div class="cat"><span><?php the_category(', ') ?></span></div>
<div class="comm"><span><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></span></div>
<div class="clearboth"></div>
</div>
<!--one post end-->
<?php endwhile; ?>
修改为:
<ul>
<?php while (have_posts()) : the_post(); ?>
<!--post title as a link-->
<li>
<h4 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h4>
</li>
<!--Post Meta-->
<!--optional excerpt or automatic excerpt of the post-->
<!--Post Meta-->
<!--one post end-->
<?php endwhile; ?>
</ul>
这样就把没用的内容和信息删除了。