There is a filter called author_link
. You can use that change the URL to whatever you want.
add_filter(
'author_link',
function ($link, $author_id, $author_nicename) {
var_dump($link, $author_id, $author_nicename); // debug
return $link; // return your modified URL
},
1,3
);
The question does not have enough detail to allow for more specific code.
You can use the template_include
hook to alter the template that loads in much the same way as the above code alters URL.
function author_archive_wpse_112852($template) {
if (/* not sure what your conditions are */) {
$template = get_stylesheet_directory().'/diff-author-template.php';
}
return $template;
}
add_filter('template_include','author_archive_wpse_112852');
Related Posts:
- Get $curauth level
- wp_list_authors including custom post types
- author.php shows profiles of all users not authors only
- Get author id from url
- The best way to create pages like an ‘about’, ‘contact’ and etc [closed]
- Displaying Total Author View
- Quest and filter posts by author ID on author page
- Is there a maximum number of author for a blog?
- User role templates
- Author page from blog post
- How to Modify Author Page for all Users?
- Get $curauth level
- Which page is referring to *all posts by author*?
- WordPress function that retrieves both posts written by a specific author& posts that contain a tag matching author’s username on author archive page
- Template Hierarchy: confused with index.php, front-page.php, home.php
- How to create custom 401, 403 and 500 error pages?
- single-{$post_type}-{slug}.php for custom post types
- What is singular.php?
- Custom Post Type Plugin: Where Do I Put The Template?
- How to override WooCommerce template files?
- Custom taxonomy query broken after upgrade to 4.4
- CPT Template Not Showing – Getting 404
- Create “File-less” Page Template in Functions.php
- Overide get_template_part( ‘partials/post’, ‘sidebar’ ); with a plugin
- How to make child categories recognize parent’s template displays
- Template for specific post of custom post type
- Display Authors Comments on Profile Page
- Is it possible to manipulate the list of page templates?
- How to use a specific category archive index as the site front page?
- Loading partial templates with AJAX/PJAX
- Is there a default template file for child pages / subpages?
- Different template for subcategories
- 5 blogs on one WordPress site
- Multiple Single Post templates
- Taxonomy Templates… by hierarchical level?
- Add admin bar link to edit author
- Creating a custom public user page
- Display Editable Text Above CPT Archive Listings
- Display all comments or recent comments per user on author page
- Different templates for parent and children categories/taxonomies
- Archive page showing nothing – issue with WordPress Hierarchy?
- How to use same theme template for multiple taxonomy terms?
- Limit the length of the Author Profile Biographical Text
- Author archive only for custom post type
- How can I set up a category “overview” page?
- Is it possible to have an index page for taxonomy term for each custom post type it is assigned to?
- Show author archive pages for authors with no posts
- Custom Post Type with Nested Taxonomy and Template Files
- Which template name to use for taxonomies but not their terms?
- Store Page Template Files in a Subfolder
- LOST in WP Template Hireachy
- Templates & CSS – Proper Programming Practice?
- Refine custom posts by author
- Authors Page : A page of authors
- How to Handle CSS for Multiple Header header.php Files?
- page_template toggle between 2 templates + 2 permalinks for same post
- How to make an author archive only for certain user role and show related CPT
- Load front-page.php from subfolder
- Static Front Page problem
- index.php template is used instead of blog page
- Creating distinct pages for author profiles and lists of posts by author
- Template Hierarchy for get_header()
- Archive or taxonomy pages not working for custom post type
- resolve /author/ to a page or archive (of all authors) template
- Single page template for custom post_type
- Overriding default template if page slug and post type are same
- WooCommerce Template overriding not working with woocommerce.php
- Trying to manage templates on a blog with lots of custom taxonomies
- Taxonomy landing pages
- is_archive() content being shown instead of is_category()
- How to display user role
- Get the terms of a custom taxonomy for a specific author in author template
- Categories Template Assistance
- Load template file without a post type
- How to apply a custom template for posts by default?
- WordPress Template Hierarchy
- Which php file lists all the post of a category
- Displaying all Video Post Formats to Page
- How can a Theme Contain no Header File or Footer File?
- Any tag pagination page (except the 1st page) loads index.php template instead of tag.php
- Rewrite Custom Post Type URL slug
- Where to put my global functions?
- Unable to include a template
- Custom post type and taxonomy permalinks – Structure
- Get data from plugin People list in author template
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Understanding the WordPress template hierarchy
- Help splitting a custom post type archive into “past” and “upcoming”
- Showing Author Information and Latest Post by author in lightbox when clicked on the name of the author
- pre_get_posts Tax Query not working for custom author page
- What should I put on my index.php?
- Change Page Template Based on Category
- Rewrite URL for only archive page (custom post type)
- Hide Author.php template from specific user role
- Load custom template for specific GET parameter
- How can I show a custom post type for users in the authors.php file?
- Loop starts from the beginning with second while loop on author.php
- How to set back query var author_name after unset it?
- Load parent theme files before child theme functions.php
- Only display link to author social media when it exists [closed]