[wp-hackers] Changing the number of search results
David House
dave at xmouse.ithium.net
Sat Sep 25 10:42:00 UTC 2004
Quoting Matt Read <lists at mattread.com>:
> if ($s) $posts_per_page = 25;
The old query variables are rather obsolete. With the next officially stable
build (or with the current CVS) you'll be able to do this:
if (is_search()) $wp_query->query_vars['posts_per_page'] = 25;
... which negates the need for any global pollution.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the hackers
mailing list