I'm going nuts.
All I have is a simple loop on the home page of the site (which is a static page), and it should show the most recent (1) post of a certain category. The trouble is no matter what i do, it seems including category parameter makes sorting by date not work.
This is the loop I am using:
<?php $announcements = new WP_Query(); $announcements->query('showposts=1&cat=4'); while ( $announcements->have_posts() ) : $announcements->the_post(); ?>
The oldest post always shows up when using this. I have tried adding
&order=DESC, but nothing works until I remove the
&cat=4, at which point things are sorted by date just fine.
Am I missing something, or is sorting a single category by date not possible?