For the list of authors, the simplest solution is to create a page with the slug author
, then create a page-author.php
template where you’ll add your own code to list authors.
All views in WordPress are a post or list of posts- there’s no concept of an author list, or a list of terms in a taxonomy, those things need to be created manually.
For the author links, the fix is fairly simple, you can manually set the structure they follow to omit the front
value that gets inserted by default:
function wpd_fix_author_structure(){
global $wp_rewrite;
$wp_rewrite->author_structure="author/%author%";
}
add_action( 'init', 'wpd_fix_author_structure' );
Don’t forget to flush rewrite rules after they change.
Related Posts:
- Remove parent slug for child pages
- Remove parent slug for child pages
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- How can I add a page’s ID to its permalink using WP_Rewrite?
- Share same Slug for a Custom Post Type and 2 Taxonomies
- wordpress how to replace url /bar with foo/bar for custom post type
- I’ve removed my /author/ slug but it clashes with new and existing pages. Any fixes?
- Bulk append URL (add word to slug)
- add_rewrite_rule – Page Slug from “/foo-bar/” to “/foo/bar/”
- Access or edit custom generated permalinks with WP_Rewrite
- optional parameter in permalink structure
- How to allow different authors to use same post slug?
- Author permalink
- Rewrite single template permalink?
- Customized author slugs not working with get_author_posts_url method
- Is it possible to get a page link from its slug?
- Need help with add_rewrite_rule
- remove “index.php” from permalinks
- How do I add /blog/ as a prefix to permalink structure for blog posts, tag pages, etc.?
- Passing and retrieving query vars in wordpress
- Change the Author Slug from Username to Nickname
- Permalink format: singular or plural
- How does WordPress handle permalinks?
- Pretty permalinks for search results with extra query var
- WordPress slug issue with non-latin characters
- How to get pretty URLs with add_query_arg in permalinks
- Change author permalink
- Creating custom permalink structure for languages
- Custom post type permalink endpoint
- How to remove dates from existing permalinks?
- Getting the Site URL Including the Front Base
- Using $_GET variables in the URL?
- Removing the redirect after changing a page’s slug
- How to display a public profile page for registered users with custom slug?
- Must slugs be unique?
- How does wordpress keep track of post id when post id is not used in permalinks?
- Stop WordPress from reserving slugs for media items?
- Including category-base in a post permalink results in 404
- Change slug on post creation
- WordPress thinks my custom route is a 404
- Prevent WordPress from abbreviating-long-slugs…-in-the-admin
- Post type child of another post type
- How to prevent apostrophes and quotes from appearing in permalinks?
- Display posts with author in the url with custom post types
- Date based URLs for custom posts and pagination
- How to add a custom URL placeholder to author archives?
- How to custom change author base without $this->front?
- URL rewrite based on a custom field value
- Why don’t WordPress post slugs allow accents?
- Update URL Snippet to Canonical Permalink URL
- Is It A Good Idea To Change Author Slug (user_nicename field) Directly In MySQL DB?
- How to prevent the default home rewrite to a static page
- How can I force WordPress to redirect to canonical permalinks?
- When creating a WordPress page, a “-2” suffix is added to new pages’ permalinks
- “.#[random-char-string]” being inserted at end of URLs
- How to i18n slugs for templates?
- How to change author base without front
- permastruct for custom post type not working in one of four cases
- How to modify author base slug with groups and slug to use nice_nickname?
- URL Rewrite + Page + Custom Post Type = Unusual Redirect
- Handle category name URL rewrite before different post type slugs
- Pretty Permalinks
- Make post slug have priority over category slug
- How to create a permalink structure for posts in a specific category
- How to remove the index.php in the url?
- How to Remove Slug From Database?
- How to make draft posts or posts in review accessible via full url / slug?
- How to map permalinks with accented letters to sanitized slugs?
- Remove subfolders from URL
- Replace WordPress %postname% suffix with %postid%?
- Prepend meta_value to permalink of post
- Add custom directory in URL
- Limiting the number of words or characters in the slug/permalink
- Using two permalinks for one post
- flexible rewrite ‘ramble’ URLs with WordPress
- How can I Rewrite a ‘page’ URL based on query string parameters?
- Custom rewrite rules for a $_GET request
- Nice RSS Feed URLs for each custom post type
- Change the custom post type permalink
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- custom naming of search permalink /search/
- Auto 301 to full post permalink? (using /posts/%post_id%/%postname%)
- Put post ID on the custom post type URL
- Rewrite url / permalink for default archive – yearly / monthly
- Rewrite user profile URL to be human friendly
- Is it possible to list post attachments in a sub URL endpoint with a dedicated template?
- Gutenberg Editor: dynamicaly change slug field with an ACF field
- Plural Category Base Slug On Category Archive Page
- Random Alphanumeric Key URLs
- How to edit the slug/permalink in Gutenberg?
- Make attachment pages require a base url
- Permalinks, Rewrites, Get Variables, Oh My!
- Using WP rather than .htaccess to redirect pages/posts
- Change permalink for a single post entry
- Adding more pages to author pages
- Remove the Parent category from the permalink but leave the child category
- How to Modify Existing Rewrite Rules?
- Rewrite URL for results of a custom WP_Query
- Rewrite URL Parameter And Force ‘Pretty’ Permalink
- rewrite_rule for custom post type doesn’t affect get_permalink