WP native function get_queried_object()
can help you to get an ID of a currently displayed term.
WooCommerce then includes this handy function: woocommerce_get_term_top_most_parent()
(originated here on WPSE btw,) that will get it’s top-level parent term.
I haven’t tested the following code but it should provide a good starting point:
if ( 'wedgwood' == woocommerce_get_term_top_most_parent( get_queried_object()->term_id )->slug ) {
// your code-fu here ...
}
Regarding the template redirect part of your question – take a look at:
Creating a default Custom Post Template that a Theme can override
Reference:
-
WP Codex: get_queried_object()
-
Woo Docs: woocommerce_get_term_top_most_parent()
-
WPSE: Get the the top-level parent of a custom taxonomy term
Related Posts:
- How can I display a div ONLY if it is not a certain term page
- Show all terms of a custom taxonomy?
- WordPress and magic quotes
- Reposition WooCommerce breadcrumb outside of wrapper content
- WordPress URL Rewrite not working
- Displaying a WooCommerce product via PHP
- wp_set_object_terms and arrays
- WP E-commerce: Showing 3 random products from current category when viewing product
- Show content if parent page has children
- Woocommerce -How to set product regular price default
- How to find objects by terms
- WordPress widget in custom theme
- Display certain amount of posts on taxonomy archive page
- Conditional statement for parent, child and grandchild pages
- Get used terms by an author as array of strings
- List all categories but exclude current post category on single post page
- Bulk Image upload and one image for each post?
- Woocommerce price including tax with formatting from options
- When is is_admin() available?
- Check if current page is wp-admin
- Append a term to WooCommerce product existing product category terms
- Problems with function on function.php
- Woocommerce Custom CSV export
- WooCommerce – Fixed quantity of a product [closed]
- How to change / delete product short description in Woocommerce
- Output 2 items within the Loop
- Get taxonomy terms only of the WP_Query current posts
- Change description on specific WooCommerce product status change
- get_terms orderby numeric
- How to create a custom category of wordpress admin
- Adding a div at the bottom of a sidebar
- How to run JS, PHP and etc. inside WP post?
- Query all posts of a custom taxonomy term
- how could I load a different template part by page
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- Working with wordpress plugin and theme templates structures
- WordPress: Access a plugin from within a theme
- PHP Warning: Attempt to read property “term_id” on bool
- How to get original custom taxonomy slug after the slug has been rewritten?
- Get term siblings of current child taxonomy
- How can I hide that I Use WordPress (with W3 Total Cache)
- Woocommerce Show Single Product on Homepage
- If tag equals then show else show
- WordPress add_rewrite_rules for custom URLs ending in .html
- Conditional tag doesn’t work in WordPress plugin
- List taxonomy term slugs within shortcode (do_shortcode)
- Copy taxonomy terms from one post to another programmatically
- Limit Taxonomy Output in Conditional Statement
- Get all categories post is not in
- Getting taxonomy images to display on single-post with their terms
- If ‘editor’ is empty, then
- Add class to DIV depending on page loaded
- Isotope Drop Down Categories Filter Function
- Should i use the wordpress Options table or to create database table..?
- Why doesn’t PhotoSmash plugin play well with wp_query?
- How to filter custom taxonomy term name, slug, and description?
- How to: Conditionally Enqueue JS and Stylesheets, for Custom Post Type (Single and Archive Templates)
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- Undefined index for default custom theme option
- Remove conditional tag from header
- Multidimensional Array
- Create a a form for custom taxonomy terms
- “if parent category is” conditional?
- Conditional for Post Format
- WordPress custom taxonomy
- Trying to display terms from custom taxonomy within function
- How do I attach an invoice PDF to an email in the Dukapress plugin for WordPress?
- update_term_meta() only updating once on certain meta keys
- How to retrieve taxonomy Metabox fields in frontend
- How to add Text before my Custom Term and hide it when empty
- How can i create a function tag in my plugin
- Create category after theme setup and modify the default one
- Display specific page if user signed in
- wp_set_object_terms returns 500 error when called through AJAX function
- Editing the term_order field
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- New term taxonomy and description in front page. Input’s
- Widget Logic – display on page and all child
- WordPress using get_term to retreive slug not working as expected
- divide custom field values in div every two values
- if user is admin display admin link and logout link else display logout only
- Add code only for blog posts
- How to define Og Meta Tags in header using conditions [duplicate]
- If Month=Particular month display content [closed]
- WordPress and magic quotes
- How to get the count for each taxonomy term
- Get all the contents of taxonomy and sort by term
- WordPress Pages into Sections edit.php PHP hack
- Add Column to Term Database
- Incomplete term slugs output from a foreach loop with get_the_terms
- Conditional in foreach loop is outputting content twice
- How can I list only Subcategories in Woocommerce
- PHP Syntax getting PHP terms
- Load slideshow.css file only if Slideshow is checked / on
- Get Products within Current Product Category
- Issues trying to add a href statment with PHP into a PHP Echo Statement [closed]
- what is %variable% in a wordpress plugin? [closed]
- if is specific custom post in cpt
- WordPress different custom tag being displayed in on tag list
- WordPress taxonomy and terms question