发新话题
打印

[问题求助] 大家好,我想问下,如何把调用文章列表改成调用文章摘要

大家好,我想问下,如何把调用文章列表改成调用文章摘要

大家好,我想问下,如何把调用文章列表改成调用所有分类的最新文章摘要

我的代码如下:

<div class="title"><a href="<?php echo get_option('home'); ?>#" class="active">Products</a></div>

<?php if (have_posts()) : ?>
<?php query_posts('cat=7&showposts=20'); ?>
  <ul class="newslist">
  <?php while (have_posts()) : the_post(); ?>
  
   <li id="post-<?php the_ID(); ?>">
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a>
   </li>
  
  <?php endwhile; ?>
  </ul>
<?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>

谢谢啊,帮忙解决一下哈

TOP

发新话题