-
query_posts($query_string.'posts_per_page=-1');
-
while(have_posts()) {
-
the_post();
-
the_time();
-
the_title();
-
}
This will display the time and title for all your posts. This could result in a very long page, and a more usable way of doing it would be to change the posts_per_page parameter, and add Next and Previous links to navigate the whole list. Code snippet by Otto in the wp-hackers mailing list.
thought, on 12/Feb/08 at 8:27 pm # :
Yaa ... great example of "snippet".
You've got me redthinking my Codex page on "The Loop" ... granularity ... a ton of good links to a ton of good pages, but it's all too massive.
Now, a collection of snippets ordered by funtionality or hooks or something ... /that/ would be neat!
said, on 14/Feb/08 at 4:08 am # :
Brilliant, as usual. Is there a way to set this by category rather than date? That would be really useful.
commented, on 12/Apr/08 at 1:10 am # :
Lorelle, you can add categories, find the number or name of your category on a category link and then check out this page...
http://codex.wordpress.org/Template_Tags/query_posts#Category_Parameters
I'm actually having a little trouble getting all the posts to display from 2008...
When I designate the poss_per_page alone it will display all the posts I've made since I started my blog...but that defeats the purpose of specifying a year! Ideas?
said, on 12/Apr/08 at 4:10 am # :
I was adding extra quotes where it's more like an HTTP query...