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
- Custom taxonomy query broken after upgrade to 4.4
- 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
- How can I set up a category “overview” page?
- Authors Page : A page of authors
- index.php template is used instead of blog page
- resolve /author/ to a page or archive (of all authors) template
- Single page template for custom post_type
- How to display user role
- WordPress Template Hierarchy
- Change Page Template Based on Category
- Rewrite URL for only archive page (custom post type)
- Load custom template for specific GET parameter
- Loop starts from the beginning with second while loop on author.php
- Only display link to author social media when it exists [closed]
- For custom templates, is it better to use `template_include` or `type_template`?
- Is there any way to get all the name or slug of template parts used in a page?
- Show woocommerce products in author archive
- How to display specific posts with WP_Query?
- Hook to override title, image and content
- Inheritance of parent theme plugin files in a child theme
- Category-slug.php not being used
- Custom post type templating problem
- Single page site with history.js
- How do I create a custom archive page depending on the custom taxonomy type?
- How to Rewrite Taxonomy URL to Include the Post Type as the Second Segment of the URL?
- WordPress Doesn’t Generate Taxonomy Archive
- All top-level pages are using index.php as template
- Is there a template file to list all terms of a given custom taxonomy?
- rewrite taxonomy-{taxonomy}-{term}.php terms
- Refine custom posts by author
- Override Taxonomy Template
- Use one template only for custom post type archives?
- How to pull user/author profile data in a plugin?
- Custom Empty Results page for my Custom Post Type
- How to force sub-product-category to use the parent category template
- Taxonomy-$taxonomy-$term not working
- Use meta boxes inside an archive page template for Woocommerce
- problem with wordpress author profile page URL
- next_posts_link and previous_posts_link problem
- Author template help. How to check if field exists in the profile?
- understanding theme hierarchy
- standard custom page template hierarchy for plugins
- inserting content of 1 Post to in another with a template hierarchy
- Unpublish Authors With not Fulfilled Fields
- Different Loop for tag pages?
- Exclude specific user_id from args in get_comments
- Archive-custome_post.php template not working
- get_comment_author_link not working properly
- How to link to the page displayed by home.php?
- Using index.php as page template
- Overwriting TwentyTwelve template file with child theme template, but lower in the hierarchy
- Help Understanding Template Hierarchy
- Use of antispambot with $curauth->email
- Check For get_post_meta on Author Archive Page
- Is it possible to set archive.php instead of index.php to display blog?
- WordPress custom pages in a folder
- How to fix a specific page (author archive) loading speed?
- Assign template to custom page type?
- BuddyPress : how can I call the template WordPress would have chosen (template hierarchy)?
- How can I make custom page templates work on child theme?
- Change author base and slug in author link
- More than one search results page template for two searches on site
- Right way to display the_author_meta fields?
- taxonomy – templates are not loading
- Templates for CPT not working
- Different templates for each category level
- Showing the authors username and bio on custom author.php
- Page has no template
- Custom Homepage As Single Page or Custom Post Type?
- How to stop the search results from loading the wrong template?
- URL Rewrite Adjustment for Custom Post Type causes template to revert to index.php
- Hide page header on both index and author pages [closed]
- CPT Template Not Showing – Getting 404
- Author page link in comments is different than in posts?
- Calling a custom profile field only it it exists
- Create archives by author role
- Template files not working for archives and categories
- How to determine top level template file in functions.php? [duplicate]
- Show the most recent post for an author on the author page
- How to make the Post Author name fixed as “Editorial Staff” even if there are multiple authors?
- Different template fallback when changing permalinks
- Archive for custom fields?
- Template hierarchy html with taxonomy in 6.2