This is a neat trick to know about. 🙂 How to change admin labels in WordPress @ blog.iamcreative. This can come in handy if you’re using…
The big question: Does category.php apply to the children of the targeted category?
The answer: No. So now what?
For those not familiar with the power of category.php within a theme, you can catch up here. In a nutshell, you can apply a custom template to a specific category just by naming the template file with a convention that gets automatically picked up by WordPress. It’s a really awesome feature to take advantage of, but there’s one problem.
Category.php will not apply to the category’s children/sub-categories. So then, how do we apply a template to sub-categories? After lurking around online to find forum threads like this, and brainstorming with a co-worker of mine, I found some solutions to the problem and wanted to share them.
Before we begin:
If there’s one thing I learned in the web development field, it’s that time is money. There are budgets to be faithful to, deadlines to aim for, and when you’re a developer who wants nothing more than to have the most beautiful and efficient code ever – sometimes those things can come at odds.
So what do you do? Do what you humanly can. Write the cleanest most awesome code you can, but be mindful of
doomsday the finish line. And try out these 5 WordPress tools and boilerplates!