Sticky posts not working?
-
Hi all,
I’m having a little bit of difficulty with a theme I’m designing. Basically, the front page of my site (test version here: https://nouse.pling.org.uk/) is using query_posts to display the latest posts in each category. It is my understand that sticky posts should be displayed at the top by default.
For example, in the “Politics” section on that site, the article “Ourselves to blame: Clegg on the EU” is sticky, but appears in its natural (by date) order, with a non-sticky post top.
How do I get sticky posts to appear top? Here’s the code for that box:
<div class="frontpagesection" id="politics"> <h2>Politics</h2> <?php query_posts('category_name=politics&showposts=4'); the_post(); ?> <div> <h3><a href="<?php the_permalink(); ?>"><img src="<?php the_article_photo(0); ?>" /><?php the_title(); ?></a></h3> <?php the_excerpt(); ?> </div> <ul class="links"> <?php while (have_posts()) { the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php } ?> <li class="more"><a href="<?php bloginfo('url'); ?>/politics/">More Politics</a></li> </ul> </div>
Any advice would be great, thanks ??
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Sticky posts not working?’ is closed to new replies.