- 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.
Shorter URL
Want to share or tweet this post? Please use this short URL: http://ozh.in/gv
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!
Brilliant, as usual. Is there a way to set this by category rather than date? That would be really useful.
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?
I was adding extra quotes where it's more like an HTTP query…
Thanks for the tips. I was looking for a way to display all the posts on a blog of mine, this helps a lot!