• Is there a way to show only the 5 most recent posts BUT leave out of this loop any ‘sticky’ or featured posts? I’m at a loss. I can’t figure out what to put in my “<?php query_posts” section. Here is my current script:

    <!-- Begin New Articles -->
    <h3 class="widget-title">What's New</h3>
    <?php if (is_home()) : ?>
    <?php if (have_posts()) : ?>
    <?php query_posts("showposts=5"); // show one latest post only ?>
    <?php while (have_posts()) : the_post(); ?>
    <div id="recentarticleslist_images">
    <div class="recentarticleslist_images_pic"><?php if ( has_post_thumbnail() ) {
    					the_post_thumbnail( 'thumbnail' );
    				} ?></div>
    <div class="recentarticleslist_images_title">   <a href="<?php the_permalink(); ?>" rel="bookmark" title=""><?php the_title(); ?></a></div>
    <div class="recentarticleslist_images_date"><?php the_time( __( 'F jS, Y', 'linen' ) ); ?></div>
    
    </div>	
    
    <?php endwhile; ?><?php endif; ?>
    <?php endif; ?><!-- End New Articles -->
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recent Posts Without Featured (Sticky) Posts’ is closed to new replies.