The given PHP example helps you to take the titles from a certain category and lists them in an unordered list. Code Example:
<ul>
<?php
$cat_posts = get_posts('category=5&numberposts=-1'); # -1 for all posts
foreach($cat_posts as $post) : setup_postdata($post);
?>
<li><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permalink to <?php the_title(); ?>">
<?php the_title(); ?>
</a></li>
<?php endforeach; ?>
</ul>
RSS Feed