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:


for all the default roles and


for the new custom role

1 Answer 1


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

  • Thanks @Baikare Sandeep! preferably I don't want to use plugins and I have not tried it yet, but I can see the detail is straightforward and directly answers my requirements. Great find and resolved! 👍
    – smurfee
    Commented Jun 3, 2020 at 11:56
  • Yes, but custom code will be issue to put it in the theme when new upgrade comes in future. So I think plugin is better way to hook the functionality. in WordPress Commented Jun 4, 2020 at 13:42
  • Ok so I tried it the only issue that I am getting so far is that it works both ways, so if you use another slug with another role it still works and not exclusively for that role.
    – smurfee
    Commented Jun 6, 2020 at 11:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.