Conditional on category.php
-
Hello,
Is there a way to make it conditional?
For example, on the category.php it will check if I used the plugin or created a template for that specific category. It will show the created custom template when I view it on it’s page (www.domain.com/category/category-with-custom-template-created) but If I didn’t create a template for that specific category it will just load a default loop code for that category page.
What I’m trying to accomplish is that I’ll only need category.php for all the category. That I won’t need to create a category-slug.php for each category that I create a custom template for.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Conditional on category.php’ is closed to new replies.