How to use same theme template for multiple taxonomy terms?
You prepare templates (staying with your example): content-redfruits.php, content-greenfruits.php, content-fruits.php. Then in taxonomy file taxonomy-fruit.php (copy and rename taxonomy.php or index.php), before main loop check the term slug of the currently-queried object. $red_templ = [‘strawberries’, ‘tomatoes’, ‘raspberries’]; // term slugs $green_templ = [‘watermelons’, ‘apples’, ‘kiwi’]; // term slugs $template=”fruits”; $obj = get_queried_object(); if ( $obj … Read more