Question

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

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with wordpress.stackexchange
scroll top