[wp-hackers] wp_list_pages(), No LIMIT?

DD32 wordpress at dd32.id.au
Mon Jun 25 08:12:04 GMT 2007


http://trac.wordpress.org/ticket/4531
Just created this Ticket and Patch.
Patch is based around the get_posts implementation, If a non-negitive  
number of pages is given then it'll do the limiting. Default remains as  
returning all pages.

On Mon, 25 Jun 2007 17:43:38 +1000, Leonid Mamchenkov  
<leonid at mamchenkov.net> wrote:

> Hi,
>
> On 6/25/07, Matt <speedboxer at gmail.com> wrote:
>> On 6/24/07, Leonid Mamchenkov <leonid at mamchenkov.net> wrote:
>> >
>> > wp_list_pages() is a wrapper function around get_pages().  get_pages()
>> > provides better control of what you and how you get.   Check how it's
>> > defined in wp-includes/post.php .
>>
>> Which doesn't have a limit either...
>
> Well, it has get_pages filter, which could be used to get rid of
> excessive pages.  The other thing, of course, is that this filter runs
> AFTER the query has been executed. But then again, there is some form
> of cache too...


More information about the wp-hackers mailing list