We managed this by hijacking the default author template and setting up our own.
Set up a new url rewrite for team members:
add_action('init', function () {
global $wp_rewrite;
$wp_rewrite->author_base="team";
$wp_rewrite->author_structure="https://wordpress.stackexchange.com/" . $wp_rewrite->author_base. '/%author%';
});
In the template we then use:
$uid = get_query_var('author');
to get the user’s id.
From there you can build out your own template (author.php) for your authors.
We approached this from the perspective of wanting a custom template and url structure for our authors, but ended up solving your problem in the process (I think).
Related Posts:
- Special domain for a page
- Displaying Post with Custom URL with RewriteRule or add_rewrite_rule
- Remove Trailing Slash from Category Base and Tag Base
- How to handle this URL Structure. Keep getting “page not found”
- rewrite taxonomy-{taxonomy}-{term}.php terms
- Inject dynamic strings in urls
- Append custom parameter to taxonomy/term URI
- How do you retrieve a post by slug name through REST API?
- How does routing on wordpress work?
- Redirecting to old domain after migration
- Unwanted media library URLs in posts?
- How to remove file versions from the file source links in wp_head?
- Add menu and submenu in admin with a URL instead of slug?
- Update media file url in wordpress media library
- Change logo url link
- How to Add Pages Under Custom Post Type URL Structure?
- As soon as I add a custom query_var using the filter, my pages point to an archive page – why?
- custom permalink/shortlink with base62 encoded post ID
- Best way of removing emoji support from url / slug only
- Allow UTF-8 characters in the user slug part of URL
- WordPress converting ../url to http://../url
- add_rewrite_rule won’t work
- Password protected page Hash url
- Which of WordPress’s .php files need to be directly accessible via HTTP?
- home_url(); showing current page instead of site address
- How do I override the emoji url?
- Site broken after using URL Change in Admin
- Can URL remain the same if migrating from Drupal?
- Custom Post type permalink structure with custom_post_id
- Setting a url for a page
- Imported thumbnails have incorrect URL
- pass user id in slug and get user information
- What is the correct way to convert the absolute path of the executing script to a URL, in WordPress?
- 404 error when passing “cat” parameter to URL
- Change pagination url format
- How can I change a media attachment URL/slug, so that I can use that slug for a page?
- Is it possible to configure WordPress’s Core Files to accept duplicate Child Categories?
- how to trace a file by the route url
- Create custom permalinks to show Custom Post Type’s relationship?
- wordpress.com website url structure [closed]
- Block direct url enter
- How do you make homepage redirect to it’s slashed version?
- HTTP 403 Error when passing parameters to URL
- Can i have access to my WordPress Website again?
- Site transferred to new server produces 404s
- How can I make my blog urls have words of the title in them?
- Website Address Keep redirect to website after migration attempt
- Change URLs depending on alias
- custom wordpress rewrite
- Passing values through url for checkbox fields with same name to get?
- Random string added end of the url blog page wordpress [closed]
- Custom HTML title based on URL parameter
- How do I avoid messing up URLs when switching from example.com/subdir to example.com?
- Made WordPress URL and site address URL the same
- How can i get rid of wp in front of URL
- Alternatives to site_url() and get_template_directory_uri()
- Blog post – single.php url
- WordPress File URL Path Incorrect
- Unicode characters are saved in a funny way in the DB
- Replace category name with article id in wordpress urls
- Redirect Old wordpress url to new wordpress url
- Localhost access after changing URL
- WordPress Primary Category Changes After Import, Permalink Issue
- Make unique url to unlock a post
- Changing siteurl in the database not working
- How to set wordpress url on local host to access it via VPN
- unique url access control
- I found weird email address appended to some of my URLs, what does that mean?
- How to get custom URL routes property_id in wp php plugin?
- index.php shows up in url
- Why my WordPress website homepage automatically adding cs_preview=true query parameter to the url?
- how to remove this #.XsZOUWhKjIU from my wordpress url
- URL redirects of webpage
- What is this extension on mu web URL?? It leads to a blank page. what is causing it/?
- Cannot Save Changes After Updating URL Settings
- Avoiding the -2 in slugs
- How to encode correclty an url with the char “&” for an email?
- How do i create navigation links like this in wordpress? [closed]
- Blog post Links leading to home page [closed]
- Custome home page url
- Let WordPress to go opening an external URL
- Change default query parameters
- Change url to posts if they have custom tax only
- problem getting audio url
- Domain name to a page
- Text widget form and URL variables
- wp-login.php ampersand in url results in 404
- How to eliminate the Web Address / Web Link textbox from comment forms
- URL displays different page (a loop)?
- Change path/url of admin-bar.min.css
- WordPress post-type create url rewriting
- Why is my WordPress install using full server directory paths for media URLs?
- Accidentally Changed WordPress Url
- Typing local WordPress URL works, but clicking the same link does not
- 404 error on cyrillic url
- WP Job Manger change jobs url (NOT slug)
- Block a specific url request
- Replace media external links with local links
- WordPress rewrites my link with custom URL scheme to http(s)
- Show page name after home url