Return to Snippet

Revision: 9936
at December 1, 2008 03:19 by creator

Initial Code
<div class="pod">
	<h2>Latest Announcements</h2>
		<?php query_posts('cat=5&showposts=10'); ?>
		<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
			<a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a>
		<?php endif; endwhile; ?>

Initial URL

Initial Description
Used to display the latest X number of posts from the specified category.

Initial Title
WordPress: Latest Posts from Category

Initial Tags
wordpress, category

Initial Language