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
- WordPress URL Rewrite not working
- Displaying a WooCommerce product via PHP
- wp_set_object_terms and arrays
- Show content if parent page has children
- Woocommerce -How to set product regular price default
- How to find objects by terms
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- 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
- How to get the term before the last from a custom taxonomy?
- List all categories but exclude current post category on single post page
- Bulk Image upload and one image for each post?
- 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
- Second Navigation inside header
- woocommerce and is_user_logged_in() if not redirect to homepage
- Woocommerce Custom CSV export
- WooCommerce – Fixed quantity of a product [closed]
- Check if term object is in array
- How to change / delete product short description in Woocommerce
- Output 2 items within the Loop
- conditional statement for custom taxonomy
- Get taxonomy terms only of the WP_Query current posts
- WP_cron won’t trigger my action
- Change description on specific WooCommerce product status change
- How to create a custom category of wordpress admin
- Adding a div at the bottom of a sidebar
- Query all posts of a custom taxonomy term
- get_term_link() returns incorrect url
- get_term_link() returns correct – But illogical error-messages disturb
- Can I prevent the user from adding more than two levels deep of terms inside of a taxonomy metabox?
- get a simple array of all of the term names that exist in all taxonomies
- 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
- showing 2 prices wholesale and normal
- WordPress add_rewrite_rules for custom URLs ending in .html
- Include Parent Term in wp_list_categories
- How can I access string value in an array?
- Limit Taxonomy Output in Conditional Statement
- Get all categories post is not in
- How to solve Woocommerce Memory Limit
- Hide image if taxonomy term is empty
- Don’t show certain div on front page?
- Add class to DIV depending on page loaded
- Should i use the wordpress Options table or to create database table..?
- How to filter custom taxonomy term name, slug, and description?
- Hierarchical taxonomy list with modificated term links
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- Undefined index for default custom theme option
- Create a a form for custom taxonomy terms
- “if parent category is” conditional?
- Conditional for Post Format
- conditional: if is page, and all subpages
- feedburner plugin for WP 3.5
- page 1 is not paged
- PHP displaying wrong custom taxonomy images
- Make separate text boxes for separate WordPress Custom Fields
- How to Add text value in Automatically in this conditions?
- How do I edit the terms output args or array data?
- update_term_meta() only updating once on certain meta keys
- How can i create a function tag in my plugin
- Add code to the header of posts by particular author
- Display specific page if user signed in
- $_GET[‘title’] in WordPress
- Editing the term_order field
- How to get Post sidebar & footer including html like get_the_content() which only gets content section?
- 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
- Need to adjust condition to say if I’m pulling categories from a post, to pull only the first one
- how to display child terms with parent terms in custom taxonomy?
- How to define Og Meta Tags in header using conditions [duplicate]
- WordPress plugin creating sidebar on the theme/page
- Pass custom value to custom taxonomy
- How to get WordPress Adminmenu items?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- conditional tags for the output of a plugin
- How to get the count for each taxonomy term
- Simple tree display of WordPress menu
- How to echo a different field if another field is empty?
- Adding else if conditional statement to purchased theme
- ISOTOPE – Missing/Invalid Arguement Get Terms
- WordPress Plugin Receive a Link
- Incomplete term slugs output from a foreach loop with get_the_terms
- How can I list only Subcategories in Woocommerce
- Load slideshow.css file only if Slideshow is checked / on
- what is %variable% in a wordpress plugin? [closed]
- if is specific custom post in cpt
- get_the_term_list give me a whitespace
- WordPress taxonomy and terms question
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- How to make my scroll bar show under condition
- WooCommerce: Custom dropdown for variation selection
- Allow HTML in custom taxonomy description, and show it on front end