If you want to use an entirely different template, you could filter 404_template
and check query vars for a specific taxonomy:
function wpa83050_404_template( $template="" ){
global $wp_query;
if( isset( $wp_query->query_vars['product_cat'] ) )
$template = locate_template( array( "product_taxonomy-no.php", $template ), false );
return $template;
}
add_filter( '404_template', 'wpa83050_404_template' );
You could also just put logic similar to the above in your 404 template and use that single template for all 404s, check $wp_query
for what query vars are set and print some text accordingly. add var_dump( $wp_query );
to your template to see what query vars get set under different conditions.
Related Posts:
- The Difference Between Hierarchical and Non-Hierarchical Taxonomies?
- How to have “the most used tags” taxonomy always expanded?
- Search for tags
- WP native tag suggest metabox. How does it process tag id?
- Change order of WordPress tag cloud
- Unable to delete a Category and Tag that share same slug
- How do I get the current tag out of a taxonomy?
- WordPress as thesaurus/dictionnary: what approach?
- Set attachment tags from attachment’s custom field data
- Adding tag’s featured image to tag archive
- How to restrict users in edit post that can just select exists tags? not add new
- How to sync to custom taxonomies (tag structure)
- How can I hide tags on a child-category page, if that tag has not been used?
- Display a tag only if there is a description
- Why does WP_Query strip colons from tag names?
- Advice on how to build multiple cross-tagged content types
- Categorize wordpress tags
- How to make tags show up in search results?
- Sorting tags by name
- Echo text using is_tag
- Tags hierarchical
- Calling an Archive Page with specific Tag/Tax ID
- I want to edit the tags template by adding text that displays all tags from the listed posts
- show recently added tags to tag cloud
- “If an object equals a term id then return the term name”
- how to print post tags [duplicate]
- Recent posts by taxonomy and filter by tag
- How to change value in wp-include/taxonomy.php without exchanging the WordPress-core
- Add a tag like a post
- How do I add tags/taxonomy to images + a query field on page to query ‘albums’ (images with same tag/taxonomy)
- IF taxonomy archive is hierarchical THEN
- Custom Titles for Multiple Tag Taxonomy Page
- Hiding a tag from display
- How to add a default item to a custom taxonomy?
- Automatically Assign Parent Terms When A Child Term is Selected
- get term by id without taxonomy
- Taxonomy terms sort by… Last name!
- get_terms with posts that have a different taxonomy with term x
- Count posts for each taxonomy term for each month
- taxonomy/category term in URL slug irrelevant for post?
- Adding a class to tag list in a function
- How to use a Term Meta Field as a link
- Embed YouTube video on category description
- Manually query posts by taxonomy with MySQL
- Custom Taxonomy leads to 404 page
- Show only, when taxonomy has posts?
- Convert Custom Post Types to Custom Taxonomies
- How do I query a taxonomy term range
- get_terms problem : related articles
- Why “Warning: Invalid argument supplied for foreach()”
- WordPress User Taxonomy Saved Values
- Display Taxonomy Description on edit-tags screen?
- get_the_terms error
- Display tag image in post using Taxonomy Images plugin index.php
- Disable stored tags queries in admin page when posting a new post
- Attaching taxonomy data to taxonomy with wp_insert_post
- Problem with orderby
- Taxonomy archive + query attachments = duplicate results
- Exclude posts which have any term in a certain taxonomy from the query
- the_terms characters not limiting
- Hierarchical list of custom taxonomy terms
- How can i count post from my post type taxonomy
- How can I create an automatic drop down menu with my tags?
- Blogroll links sorted by category in a table
- How to relate a user object to taxonomy term?
- Echo tags with an if statement and display php inside of the IF?
- Conditional category & tag statement
- Taxonomy vs Post Status
- Declaring arguments for taxonomy
- Prevent certain subscribers from seeing specific taxonomies (changes frequently)
- Using taxonomies to handle layout?
- Return single taxonomy term outside the loop
- How to embed the Taxonomy Admin screen in to a Tab of a Settings Page in a plugin
- how to create hierachial taxonomy and manage under single post type?
- Assign Multiple Values from Post Fields to Taxonomy Terms
- how can send a parameter by click on gender-link to filter a post by gender and product taxo
- How to show taxonomy on front page
- How to add Text before my Custom Term and hide it when empty
- How best to add Author or Artist to product
- Order custom taxonomy hierarchy
- Including taxonomy in searches
- Different Sidebar for same Taxonomy
- How Do I Register Two Taxonomies with one Parent of the Other?
- Translation ready code format for taxonomy
- how to display taxonomy name in do shorcode php tag
- Can I have have terms with the same slug in the same taxonomy?
- How to customize taxonomy edit page
- How to echo Tags and Categories as plain text
- Search Page: activate html code if the tag is on the page
- Categorizing posts by location
- How to filter the terms to a special custom taxonomy?
- custom post type tags
- How can I create gallery of products and submit data for each product?
- Why can’t I exclude a term ID from either get_terms or WP_Term_query?
- get_term_link doesn’t work
- What is the ‘selected’ parameter in wp_dropdown_categories() for?
- Taxonomy works in local XAMPP but doesn’t work live
- Append taxonomy url
- get_terms of specific parent (including the parent itself)
- Add new taxonomy in WP without generate any url