Michael Howe
Member
Posted 1 year ago #
I'm not sure where to put this, but I think this is the spot.
In short, I just want the a page on my blog to show a list of only the titles of my blog entries and be grouped by month. I could enter this manually, of course, but that wouldn't help when I leave for a week and future post. :P
Thanks for all the help, guys. ^.~
Why not try this code:
<?php $current_month = date('m'); ?>
<?php query_posts("monthnum=$current_month&order=ASC"); ?>
<!-- put your loop here -->
then for the next month try this:
<?php $current_month = date('m'); ?>
<?php query_posts("monthnum=$current_month&order=ASC&offset=1"); ?>
<!-- put your loop here -->
then the next this:
<?php $current_month = date('m'); ?>
<?php query_posts("monthnum=$current_month&order=ASC&offset=2"); ?>
<!-- put your loop here -->
and so on adding 1 to the offset function each time. I have not tried it but its worth giving it a go.
Michael Howe
Member
Posted 1 year ago #
Hmm... I tried, but I can't get anything to work! >< All it comes up with is:
"Sorry, no posts matched your criteria." ><
Thats working for me (the first bit off code), are you sure you have the code in correctly. Just add it before a loop.