[wp-hackers] change number of posts displayed on the page
David Clark
david at davidsaccess.com
Sun Jan 16 15:22:29 GMT 2005
hi,
the way I'm doing this is adding to the order_query hook, like:
function order_query($query_string) {
if (!empty($query_string)) {
$query_string .= '&orderby=title&order=asc&posts_per_page=9999';
}
return $query_string;
}
add_action('template_redirect', 'state_listing_template', 1);
Hope this helps.
dc
On Jan 16, 2005, at 8:25 AM, Tara Star wrote:
> scriptygoddess wrote:
>
>> I'm trying to set it up so that a home page will show 8 posts - but my
>> category pages will show ALL posts in that category. It doesn't appear
>> as if anything built in will do what I need it to - so I guess I'll be
>> writing a hack or plugin to do this.
>>
>>
> ah, this is what I want too! I don't want either my monthly or
> category archives to be paged -- and I want a small number of posts on
> the home page. I'm pretty surprised 1.5 is not offering a way to do
> this without a plugin or hack.
>
> Steph aka bunny
> --
> http://climbtothestars.org/
> _______________________________________________
> hackers mailing list
> hackers at wordpress.org
> http://wordpress.org/mailman/listinfo/hackers
>
More information about the hackers
mailing list