Skip navigation

Archives Pages Tip from Photomatt

PhotoMatt, yes, the famous WordPress Matt Mullenweg, has a tip for improving your archives Page in WordPress.

For my archives I wanted to display a list of recent entry titles like Hemingway [Theme] does, but I ran into the problem that it would only show 10 at a time (or whatever you have set in your options) and then makes you page through the rest, which sucks. But, thanks to WP, the fix is easy! I added query_posts($query_string . '&showposts=1000&order=asc'); to the archive.php template right under the header call. Basically what this says is to take the current page query and add the part that shows a bunch of posts, in this case 1000, and also to sort it chronologically instead of newest to oldest.

This is also worth considering using on your search.php template file. There also might be other uses of this in WordPress template files. Ideas? Suggestions?


Site Search Tags: , , , , , , , , ,
Copyright Lorelle VanFossen

3 Trackbacks/Pingbacks

  1. […] Archives Pages Tip from Photomatt […]

  2. […] Archives Pages Tip from Photomatt […]

  3. […] Archives Pages Tip from Photomatt […]

Post a Comment

Required fields are marked *
*
*