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

Était-ce utile?

La 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

Licencié sous: CC-BY-SA avec attribution
Non affilié à wordpress.stackexchange
scroll top