Hide Author.php template from specific user role

I have a author.php template that styles a user profile (custom role: agents,etc)

I have a blog and Editors & Contributors can post articles.

Problem

When a viewer on the blog clicks an author link to view the Author Archive page, the page that is loaded is the Author.php template. This template shows agent profile details and no articles. this author.php template has nothing to do with Editors & Contributors.

Solution?

How can i exclude Editor & Contributor from loading this author.php file?
That way when a user visits the blog post authors link, it takes them to Author Archive page insted of the agent author.php custom template

Hope this is clear enough, Thanks for the help!

Read more here:: Hide Author.php template from specific user role

Leave a Reply

Your email address will not be published. Required fields are marked *