The problem is this:
register_taxonomy('author', 'post', array( //tax args here... ));
The first argument, which is taxonomy name, you’ve set to author
. WordPress uses that value as the taxonomy query var if a value isn’t explicitly declared. When this taxonomy is queried, author
is used to pass the requested term slug to the query.
The problem with that is that WordPress already uses author
to query for users via their ID. Visiting those term pages results in WordPress trying to query for posts where user ID is 0, which will always be a 404 (any non-numeric string is interpreted as invalid and becomes integer 0).
Either change the name to something else:
register_taxonomy('something_unique', 'post', array( //tax args here... ));
Or, explicitly set query_var
to something other than author
.
register_taxonomy('author', 'post', array(
'query_var' => 'something_unique',
// the rest of your tax args...
));
Related Posts:
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- How to pass posts_per_page and paged params query vars to custom taxonomy archive urls?
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- Pagination throws 404 error on custom taxonomy archive pages
- Check if current term is a child of another term
- Custom Taxonomy Leads to 404 Page – Permalink Structure Flushed
- How to hide custom taxonomy archives same way as hiding custom post types?
- Page queried instead of a custom taxonomy
- Using a different template per Custom Taxonomies for single term archive pages
- Category page for custom-taxonomy shows 404 when using custom permalink structure
- Creating an Archive using a Custom Taxonomy
- Display direct children of the current custom taxonomy in taxonomy.php template
- Date archive permalinks for custom taxonomy
- 404 error- issues with pages after adding custom rules for posts
- Taxonomy archive showing no results
- Dynamic loading of Archive content based on custom taxonomy term name
- List taxonomies according to whether this post is in another taxonomy in taxonomy archive
- orderby meta_value breaks taxonomy term archives
- Why is the custom taxonomy archive page redirecting me to a single post? [closed]
- How to have two different versions of a tag/category/taxonomy archive page?
- Automatically Give All Custom Post Types a Pre-Set Category [duplicate]
- How to add Post Format Taxonomy Archive page in the menu?
- How does WordPress Parent-Child Taxonomy actually Works?
- Custom taxonomy archive shows 404 error
- Custom Taxonomy index/archive hierarchy
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Custom Taxonomy Term Archive Page Template that Filters 2 or more Taxonomies
- How to use multiple archive templates for a taxonomy?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- how does the wordpress rest API work
- Permalink Problems
- Taxonomy archive template that shows posts from more than one taxonomy
- Custom Taxonomy List with Children
- why the archive of custom taxonomy term shows nothing?
- 404 Error on Custom Post Type / Custom Taxonomy
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Custom taxonomy throw error 404
- Add terms to a taxonomy archive from within the same taxonomy
- Custom Taxonomies Archive Page 404
- problem : Custom taxonomy template not showing
- How to create archive pages for metadata query generated posts (so without taxonomy)?
- How to create a completely functioning separate archive for posts from only 1 or 2 specific categories
- How to get a terms and posts associated with another term?
- Change the Page Title of the Archive Page for Portfolio Tags
- Custom taxonomy return 404
- What’s the url queryvar for a taxnomy archive?
- Multi level archive
- Error 404 in Custom taxonomy with pagination
- index.php Not Showing Custom Posts / Terms
- Custom Taxonomy Archive Page for Parents AND Children?
- Redirect or Prevent Viewing of Custom Taxonomy’s Archives?
- Creating a Taxonomy Page [duplicate]
- Broken paths on taxonomies after changing permalink to post name
- Custom taxonomy rewrite in permalinks for posts gives 404 on pages
- Exclude 2 in 3 terms of A Taxonomy from all Archives
- Insert code on specific taxonomy archives
- Permalinks not working on MU network with domain mapping
- Custom Taxonomy Archive URL rewrite
- Can you orderby slug in a taxonomy archive page using WP_Query?
- More than one Hierarchical Taxonomy and SEO
- Getting Catategory / Taxonomy Description on Non-archive Pages
- Taxonomies starting with a hyphen (minus) to assign B.C. dates to a post
- Custom taxonomy archive empty
- Why my archive title isn’t showing?
- Creating a custom archive page for WooCommerce products based on tags
- Custom taxonomy terms not showing as list Gutenberg Editor
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to assign default taxonomy to pages on ‘save_post’?
- Get main term from a sub term in Woocommerce
- Permalinks for quote authors
- In a loop of custom post type, display first custom taxonomy term
- All posts are still shown when adding category argument to query
- How to add autocomplete to custom taxonomy for CPT
- Using wp_list_categories to show more than one custom taxonomy
- Show all posts without a custom taxonomy
- How can I populate a select element with terms from a custom taxonomy and filter post results?
- How do I list the pages of a custom taxonomy?
- Some archive by year page return 404
- Why does a new taxonomy term get created when I assign an existing term to a post?
- How do I create a permalink structure with 2 taxonomies
- Custom Taxonomy Query
- Pass taxanomy parameters to next_post_link()?
- Get all terms, including unchecked, or get the terms outside loop
- get_term_link not working
- Show template part if part of term
- Include get_term_link inside search
- Shortcode to show the terms from the current post (custom post type & custom taxonomy)
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- Output slugs to use as class names for every taxonomy a post is attached to
- Custom Tax Archive of Parents Only?
- Change taxonomy of posts
- Getting grandchildren of a post with a specified custom taxonomy?
- Taxonomy Parameters in WP Query to get posts from two different taxonomies
- Update fields with post object and custom tax with wp_insert_post
- Any way to make custom taxonomy field searchable?
- Select Custom Taxonomy from Theme Options
- Rewrite URL for a specific taxonomy [duplicate]
- Template hierarchy html with taxonomy in 6.2