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
- Unwanted redirection to homepage after turning taxonomy to ‘public’=>false
- Index page of posts tagged with two separate taxonomies
- Display list of custom taxonomies from a custom post type ordered by their parent
- Multiple taxonomies, what should the permalink look like?
- How do you move custom fields to custom taxonomies using WP Queries
- WordPress hiding posts without content on custom taxonomy query. How to solve?
- Child Pages and Custom Taxonomies
- get meta fields and taxonomy of any post type
- How to make an sql query to exclude everything but custom taxonomy terms in table wp_terms?
- Custom taxonomy – query returns an error
- Where to put a migration script to switch post information?
- rewriting for custom taxonomy rewrite
- Display the first tag assigned to a post
- Change taxonomy of posts
- Custom Taxonomy registered with multiple custom posts
- Run next query based on first query’s term
- Query Number of Loaded Posts in Loop
- Producing a list of media library items categorized under a certain taxonomy item
- Why is it defaulting to “uncategorized” even after I select a custom taxonomy
- Get the original menu item name string instead of the label
- Custom taxonomy list in two columns
- How to use tax_query other than by slug or id or solve custom taxonomy tags conflicts with pre-existing tags?
- Tax query array terms display out of order
- Pagination with custom query (not using posts)
- Order posts with custom taxonomy array
- Remove taxonomy menu without removing the metabox?
- Custom taxonomy list in Worpdress
- Custom taxonomy displayed in search results
- How to perform a search inside a specific taxonomy category
- How to change taxonomy slug?
- Taxonomy to WordPress Permalinks of custom post type
- Register custom taxonomy from a Advenced custom field option page
- What’s the proper WordPress URL for the template of my custom taxonomy?
- Custom taxonomy page uses index.php