[wp-hackers] Custom URL for Paginated Archive Pages

scribu mail at scribu.net
Tue May 15 19:08:58 UTC 2012


On Tue, May 15, 2012 at 6:17 PM, Ryan Frankel <ryan.frankel at gmail.com>wrote:

> Is there anything wrong with doing something along the following to get
> the result I am looking for?
> - - -
> add_action( 'init', 'my_permalinks_func' )l
> function my_permalinks_func() {
>        global $wp_rewrite;
>        $wp_rewrite->pagination_base = ''
> }
> - - -
> Then flush the rules.
>

That's the correct way to change the pagination base.


ALSO, is there a preferred way to change the Author Permalink from ending
> with {nicename} to {first_name} (or whatever)?
>

That's a different topic, don't you think?

-- 
http://scribu.net


More information about the wp-hackers mailing list