You could register a user_meta field (probably a dropdown) and use that to select templates. You will still need to use if
statements to differentiate the templates, but you’re going to need that regardless of the route you take. If you use get_template_part()
you can split out the actual html and such of it and just handle the logic in author.php
Related Posts:
- How to check if a user (not current user) is logged in?
- How to display a public profile page for registered users with custom slug?
- Order the users by the date of their latest post
- Permalink to user profile
- Creating distinct pages for author profiles and lists of posts by author
- Completely hide user info
- Author profile visitors in last 7 days in front end without plugins
- Remove /author/ from the author profile url
- Is there any function available to echo current user’s profile url?
- How to link avatar and nickname to profile
- How to link to the current User/Author Profile page?
- Getting $curauth->ID to work inside a shortcode
- Custom avatar image link added to the profile page
- Get avatar of the logged-in user in WordPress
- How to get all possible arguments for a wordpress function
- Is author.php a core file?
- Creating User Profiles using author.php
- Getting list of top 10 users and sort on last name
- How to create page for user?
- Variable undefined but it is defined
- Show infos only to the author in the author.php
- Author.php display profile for all types of users
- Profile Field In Admin Bar
- How to remove the author pages?
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- Select subscriber as author of post in admin panel?
- Change the Author Slug from Username to Nickname
- Echo author ID in author.php
- Make display name unique
- Woocommerce: assign an “author” to a product
- How can HTML be allowed in Author Bio?
- Programatically change post author
- Use author author display name in permalink structure for pages and posts
- Change the author slug from nickname to ID
- How to let contributors to create a new revision(draft) editing their published posts
- How to obtain the user ID of the current profile being edited in WP-Admin?
- Is it safe to store a user setting you don’t want the user to ever modify as a user option?
- Get a list of all available fields in the User Profile
- Restrict one post per author
- How to get author’s name by author’s id
- Where the Nickname is being used in WordPress
- Author page: Comments and Ratings?
- WordPress: How to get the current logged in author page URL?
- Display edit link if post author is current user
- Give Author users the right to embed
- Force display name as full name
- How to get post author name by its ID inside a function?
- How can I publish a post with two or more authors?
- How to create a public profile for authors/contributors/users?
- User Profile / Add Custom Fields
- If Else Gravatar Author Picture
- Get attachment ID of author_meta image – Attachment Metadata
- Displaying custom post types in author.php
- Add rewrite endpoint to author page + pagination
- Force users to complete their profile after they register? How to
- What’s a good way to put authors into groups
- Upload gravatar in WP profile?
- How to Save Different Usermeta Fields According to User Role?
- Show Author in custom rss feed
- What is the difference between user_description and description?
- How can an author be subscribed to the posts of another author and receive notifications of the new posts?
- No authors in change author dropdown
- Show author archive pages for authors with no posts
- How to get profile user id when uploading image via media uploader on profile page
- More posts from the current author
- Authors Page : A page of authors
- List authors of site with link and gravatar
- How we can get the author ID by its Name
- How to hide posts count and posts of other users from edit.php for contributors and authors
- User Published Post Count
- Add User meta fields, which only admin can edit
- Custom size for image uploaded to custom field in user profile?
- What capability allows someone to change a page’s/post’s author?
- How to get posts without author?
- add ‘file upload’ field to user details
- Allow Content Author to Publish, But Not Edit or Delete
- Just wanted to Pull Author’s Link
- Making WordPress author follow button, need missing ingredient
- Extra User Profile Field Upload File / Image
- Show different badge based upon the user role
- list author’s posts in author.php
- Get only the author profile picture image url inside a loop
- Get the comment author ID by the comment ID
- Drop down list in user profile page
- How To Remove The Author(s) From Certain Posts
- Is it possible to set/override default the_author_posts_link to login name?
- How can I default to all WordPress roles when parameter is not included in shortcode?
- add capability to author role to be able to delete attachments
- Limit number of posts a user can make per minute?
- Google Authorship on a multi-author blog?
- How can I add an image field to BuddyPress Extended Profile Fields? [closed]
- Replace Gravatar with img URL for avatars
- Change author base slug to user role
- Total Word Count For Posts And Comments By One Author
- Get the excerpt for a post created by the related author
- Custom user profile URLs
- Custom style on profile options page
- Custom Author Fields + Existing Taxonomy – Integrating the Two Dynamically?
- Display Author role in archive or author page
- Author must complete profile info before they can publish a post?