Sanırım aşağıdaki kod ile olur temanıza göze div ul içine alırsınız
<?php $my_query = new WP_Query('category_name=KATEGORİ İSMİ&showposts=5');
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>
<li><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>