/ Published in: PHP
                    
                                        
Used to display the latest X number of posts from the specified category.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<div class="pod">
<h2>Latest Announcements</h2>
<ul>
<?php query_posts('cat=5&showposts=10'); ?>
<?php while(have_posts()) : the_post(); if(!($first_post == $post->ID)) : ?>
<li>
<a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a>
</li>
<?php endif; endwhile; ?>
</ul>
</div>
Comments
 Subscribe to comments
                    Subscribe to comments
                
                