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
- Current post’s author name in the author meta tag
- 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
- category not display in word press grammatically
- 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?
- Woocommerce price including tax with formatting from options
- Trying to use Ternary operators with WP Conditionals
- How do I get taxonomy terms by ID in a specific order
- WP_Query use for a filter with multiple Taxonomies and Terms
- 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]
- Using is_page() in functions.php not working at all
- 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
- How to enqueue CSS and JS only on specific template?
- 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
- get_term_link() returns incorrect url
- how could I load a different template part by page
- 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
- WordPress plugin/code to hide all things related of a user from the public
- PHP Warning: Attempt to read property “term_id” on bool
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- How to get original custom taxonomy slug after the slug has been rewritten?
- WordPress, AJAX and pre_get_posts using conditional tags
- Get term siblings of current child taxonomy
- How to get post’s current parent term ID?
- Insert term and child term from frontend
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- showing 2 prices wholesale and normal
- 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
- WooCommerce Tabs [closed]
- WordPress add_rewrite_rules for custom URLs ending in .html
- Conditional tag doesn’t work in WordPress plugin
- Checking if a woocommerce attribute is set
- List taxonomy term slugs within shortcode (do_shortcode)
- Include Parent Term in wp_list_categories
- How can I access string value in an array?
- Copy taxonomy terms from one post to another programmatically
- Conditional statement for dates
- Limit Taxonomy Output in Conditional Statement
- Get all categories post is not in
- Getting taxonomy images to display on single-post with their terms
- How to solve Woocommerce Memory Limit
- Hide image if taxonomy term is empty
- Don’t show certain div on front page?
- 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)
- what is %variable% in a wordpress plugin? [closed]
- if is specific custom post in cpt
- get_the_term_list give me a whitespace
- advanced custom fields: repeater field within conditional statement [closed]
- WordPress different custom tag being displayed in on tag list
- WordPress taxonomy and terms question
- WordPress Block Editor Gutenberg running code inside ! is_admin()
- How to make my scroll bar show under condition
- Put ACF function output code the_terms
- Replace attribute terms with wp_update_term (woocommerce)
- Side bar only if it’s not a single post or a specific page
- WooCommerce: Custom dropdown for variation selection