How to Display Recent Posts with Summary?


Hi Just Use below Code:

<ul>
<?php query_posts(‘showposts=5’); ?>

<?php while (have_posts()) : the_post(); ?>
<li><a href=”<?php the_permalink() ?>”><?php the_title(); ?></a></li>

<li><?php the_excerpt(__(‘(more…)’)); ?></li>
<?php endwhile;?>
</ul>

 

This is Search in google and get it. Its work for me. You change any latest post query, its fine for you.

Comments are closed.