Custom author url and page for another role

I would like to create a custom url and a separate or duplicate the author.php template for another custom role w/o using plugins.

I found this related topic but it just modify the author url

Override default url for author pages?

Something like:

mydomain.com/author/foo

for all the default roles and

mydomain.com/member/john

for the new custom role

Topic author user-roles url-rewriting author-template Wordpress

Category Web


Hi You can create a user roles and create a dynamic author base for each role from setting. Use the below github repo: https://github.com/thebrandonallen/edit-author-slug

enter image description here

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.