Template hierarchy: how to let category.php conditionally-load archive.php? August 13, 2022 by Tarik Billa I faced a similar problem, answer is linked below, and it turns out Template Filters do the trick! https://wordpress.stackexchange.com/a/252459/110886