[wp-hackers] Custom URL for Paginated Archive Pages

Ryan Frankel ryan.frankel at gmail.com
Tue May 15 15:17:19 UTC 2012

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.

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

Any help on this would be greatly appreciated.  If there is any documentation or standard procedure for these types of rewrites that would be awesome to.


Sent from my iPad

On May 14, 2012, at 2:53 PM, Ryan Frankel <ryan.frankel at gmail.com> wrote:

> All,
>  I am sure this has been asked/discussed before but I am wondering what the best way to control the URL of a paginated archive page.  I.E:
> Current: www.wordpressrocks.com/author/ryan/page/2
> Should Be: www.wordpressrocks.com/author/ryan/2
> OR: www.wordpressrocks.com/author/ryan/* (where * is anything I can dream up)
> I can have `paginate_links` output the Should Be URL easy enough but I am unclear how to change the actual permalink.
> As an aside, if I modify the output of `get_pagenum_link` will that have the effect I am looking for?
> I can only imagine that this has been discussed/wanted a million times over and any input anyone has would be much appreciated.
> Ryan S. Frankel

More information about the wp-hackers mailing list