[wp-hackers] Alternate paging URLs
Dave Viner
dave at vinertech.com
Wed Mar 3 23:01:04 UTC 2010
Beyond just changing the text of '/page/' to something else, it seems like
the whole url pagination construction should be pluggable. Something along
the lines of:
function generate_paginated_part ($page_number)
{
// by default, we use '/page/N', but this can be overridden.
return '/page/' . $page_number;
}
Or, if not a pluggable function, then at least a filter that passes the
current string, and the integer page number.
Dave Viner
On Wed, Mar 3, 2010 at 2:43 PM, scribu <scribu at gmail.com> wrote:
> On Thu, Mar 4, 2010 at 12:07 AM, Dave Viner <dave at vinertech.com> wrote:
>
> > Regardless of the better/worse solution for URL structure, it seems
> > reasonable that WP should provide a relatively simple way to override the
> > paging schema used.
> >
> > I had to implement a bunch of code to change the /page/N to anything
> else.
> > It should be pluggable.
> >
>
> If you're refering to the 'page' string, yeah, I agree that it should be
> made easier to change. I've opened a ticket:
>
> http://core.trac.wordpress.org/ticket/12507
>
>
> --
> http://scribu.net
> _______________________________________________
> 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