Change the Author URL Base From /author/ to /team/
Changes author archive addresses from /author/name/ to a word of your choice, such as /team/name/ or /writers/name/, to match how your site talks about its people.
Opens WPIDE on
Code
// New base for author archive URLs.
$wpide_author_base = 'team';
add_action( 'init', function () use ( $wpide_author_base ) {
global $wp_rewrite;
$wp_rewrite->author_base = sanitize_title( $wpide_author_base );
} );
Notes
Visit Settings > Permalinks and click Save once after activating or changing $wpide_author_base, so the new rules are built.
How to add this snippet
- Install WPIDE on your WordPress site (it is free) and open Code Snippets.
- Use snippet above adds it from the library in one click. Or copy the code into a new snippet with the same code type.
- It is added inactive: review the code and settings, then switch it on.