date.php shows all posts. how to fix it?
Take a very good look at the Template Hierarchy. You should not need to be creating new queries for these pages. As near as I can WordPress, has already done the work. You are just doing it over again. That is inefficient. The only thing that I see that you might need to adjust is … Read more