How to force sub-product-category to use the parent category template
I solved it, after facing these 2 issues: 1- use template_include in filter instead of taxonomy_template 2- I reordered these lines according to my need. // Current first $templates[] = “category-{$category->slug}.php”; $templates[] = “category-{$category->term_id}.php”; // Parent second $templates[] = “category-{$parent->slug}.php”; $templates[] = “category-{$parent->term_id}.php”; $templates[] = ‘category.php’; So here is my final code: /** * Filter … Read more