I have two categories that need a special template. Each has one post and will display differently. So I read that if the category is named, for example, ‘testing’ and the template name is ‘testing.php’ then it should use that correct?
Why would it not? I keep previewing the post and it just redirects to the home page.
I have two categories that need a special template. Each has one post and
Share
Naming the template
testing.phpwon’t work. You need to use either a slug or ID of your category, so eithercategory-testing.phporcategory-ID.phpif you know the ID of category (ie. you’re not making a theme for release and your IDs are constant).