No subject


Tue Apr 20 23:23:57 UTC 2010


# 'showposts' =3D> 1 - use 'showposts' =3D> 3 to show 3 posts. Use
'showposts' =3D> -1 to show all posts. Deprecated in favor of
posts_per_page

Gav

-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Philip M.
Hofer (Frumph)
Sent: 06 December 2010 11:36
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] showposts/posts_per_page bug?

You want

&show_posts=3D-1&posts_per_page=3D-1'


the show_posts as well



----- Original Message -----=20
From: "Gavin Pearce" <Gavin.Pearce at 3seven9.com>
To: <wp-hackers at lists.automattic.com>
Sent: Monday, December 06, 2010 2:33 AM
Subject: Re: [wp-hackers] showposts/posts_per_page bug?


> Just flicked onto the list to post the same question.=20
>=20
> Also seeing the same bug:
> $resources =3D get_posts(array('post_type' =3D> 'tsn_resource',
> 'posts_per_page' =3D> '-1'));
> returns only 5 items out of a possible 50ish.
>=20
> As I need all posts, I can get it to work by running:
> $resources =3D get_posts(array('post_type' =3D> 'tsn_resource',
> 'posts_per_page' =3D> '-1', 'nopaging' =3D> true));
>=20
> G
>=20
>=20
> -----Original Message-----
> From: wp-hackers-bounces at lists.automattic.com
> [mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Simon
> Blackbourn
> Sent: 05 December 2010 22:03
> To: wp-hackers at lists.automattic.com
> Subject: Re: [wp-hackers] showposts/posts_per_page bug?
>=20
>>
>> It's a bug. Fixed in 3.1.
>>
>>
> great news, thanks for the update.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>

_______________________________________________
wp-hackers mailing list
wp-hackers at lists.automattic.com
http://lists.automattic.com/mailman/listinfo/wp-hackers


More information about the wp-hackers mailing list