How to ignore ‘Sticky Post’ when displaying latest post title?
-
Guys I’ve this piece of code working, but my sticky post still appear in my list of latest post title even after excluding it’s category. Plz advice. Thx
<?php if (have_posts()) :query_posts($query_string .'&cat=-8'); ?> <?php query_posts('showposts=1'); ?> <?php while (have_posts()) : the_post(); ?> <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a> <?php endwhile;?> <?php else : ?> <h2><?php _e('Not Found'); ?></h2> <?php _e('Sorry, no posts matched your criteria.'); ?> <?php endif; ?>
- The topic ‘How to ignore ‘Sticky Post’ when displaying latest post title?’ is closed to new replies.