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?
- Make display name unique
- Get a list of all available fields in the User Profile
- Where the Nickname is being used in WordPress
- Displaying custom post types in author.php
- Upload gravatar in WP profile?
- No authors in change author dropdown
- List authors of site with link and gravatar
- User Published Post Count
- Just wanted to Pull Author’s Link
- Extra User Profile Field Upload File / Image
- list author’s posts in author.php
- add capability to author role to be able to delete attachments
- Author must complete profile info before they can publish a post?
- Editing the loop for Author pages
- List User Comments on User Profile BuddyPress [closed]
- How can I add “posted by ‘author'” to each post?
- no emails for a user account
- How to add local users to wordpress without email password?
- Show selected value in a drop down menu
- Can I stop authors from changing the font in their post?
- Author page doesn’t change after username change [duplicate]
- how to make a profile entry read only except for site managers [closed]
- Author bio Social Links
- Author custom fields post meta, the code?
- Change destination of author link to BuddyPress member profile
- Filter Author Bio
- How to remove the dropdown author data from the post edit page
- How to add a user profile page to frontend?
- Where is the information about the authors for articles stored?
- How to add child page to author.php
- Modify user profile data through scripting?
- Restrict user role Author from viewing comments in admin interface
- Most recent post is missing from Author page
- I have two problems ( SEO )
- Difference between last_name and user_lastname
- Migrate different author’s content to current author
- Create a “user log”
- Get all media files for current author
- get_the_author_meta not working
- how to get page views of author page?
- Author comment count in author page
- How to hide user profile fields based on the role of the viewed user?
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Auto assign author to new posts with wp_insert_post_data
- Conditional/Check: IF author has no First Name THEN
- Display Authors Selectively
- Display a list of all post from the Author in the author’s page (author.php) in alphebetical order
- How to show user role in author.php
- redirect user to their profile after log in
- Can change twentytwelve_entry_meta “by-author” links?
- How can I set wp_dropdown_users so that it shows only authors?
- Author Page List – change to show authors instead of not subscribers
- Cannot select certain authors for posts after import
- How to parse a huge list of users using a CRON function?
- How to add extra field in profile page and show in myaccount?
- WordPress 5.8 – Hide or Remove personal fields from admin Profile page
- WordPress Posts Multi Author without using plugin
- How do I tag every author in their posts that they have made previously
- Show all authors in drop down panel while choosing author for a post
- Can’t use Persian/Farsi in Author slug (returns 404)
- Author.php Page views counter
- Co Authoring with different positions
- Set a static page as a user profile page?
- Require confirmation of current user’s email before updating database and before send_email_change_email
- Creating multiple profiles under one user to assign to particular posts
- WordPress User profile page fields missing
- WordPress Author Information show paragraph?
- Designing a member area on my site
- Link to Authors blog posts
- Display all existing members
- Return one of user’s post from a category in user’s profile
- Multiple Authors per post and filter post by author
- Replace author with custom field in feed
- author.php get current id of author for advance custom field
- the_author function is displaying wrong name and url
- Some data of one custom user profile is erased when I update another custom user profile