[wp-hackers] Hi!

Andy Skelton skeltoac at hotmail.com
Sat Jun 18 13:47:41 GMT 2005


>From: Max Winde <max.winde at projekt-brot.de>
>Change it or simply switch to  "show 10 posts"?

Most users don't require such fine-grained control in the admin interface. A 
plugin could be written to alter the wp-query before the theme is loaded. 
Like this:

function custom_post_count() {
if (is_archive()) // Customize the query with LIMIT=10
if (is_search()) // ...or a WHERE clause to limit dates.
}
add_action('template_redirect','custom_post_count');

Or something like that... don't quote me. :)

Andy

_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar – get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/



More information about the wp-hackers mailing list