I have a basic archives.php file. I was trying to get it to display only posts from category 1. When I do query_posts('cat=1'), the URL is then ignored and all posts in category 1 are displayed.
For example, lets say I have one post in category 1: it's called "testing post" and is dated November, 1, 2012. Lets say I have another post in category 5 dated April 2, 2012.
With the current archives.php (using the query posts for cat 1) the URL: http://testing.com/2012/04 resolves to show all posts within category 1. No good, since the post is dated November, and the URL is querying for April (04).
The archives.php will resolve http://testing.com/2012/04 and http://testing.com/2012/11 as each of those months have a post in them (albeit not from category 1), it will not however resolve http://testing.com/2012/09 as that month doesn't have any posts (category 1 or otherwise)
How can I make the archives.php file query for the current month (whatever is in the URL) but only display posts in category 1? Asked another way, how can I make http://testing.com/2012/04 come up with a "sorry there are no posts here" message, like in http://testing.com/2012/09 while http://testing.com/2012/11 still displays the one post from category 1?