Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Conditional on category.php

$
0
0

Replies: 0

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 all articles
Browse latest Browse all 67836

Trending Articles