page-{slug}.php vs. template-{slug}.php

So my question is, should I assume that this is a theme-based functionality, where some themes provide support for files with the template-{slug}.php naming? Correct. Or do all WordPress applications allow for such files? If so, where can I find instructions on how to use template-{slug}.php files? Or is there another way these days to … Read more

Best practice to update the file header.php

This question leans towards getting some subjective answers, as I think it’s a matter of personal preference. The built-in editor works just as well as any other text editor. That goes for any of your theme files, not just header.php. The benefit of using an external editor (like Notepad++ and using FileZilla to FTP your … Read more

Custom taxonomy template for categories

Your terminology is a bit scrambled here. A custom taxonomy is a taxonomy which you manually register through register_taxonomy. In your case that is ait-dir-item-category. Any “category” (as you call it) you create in your custom taxonomy is called a term. In this case events. To create a custom page for events, you need to … Read more

Possible to have one template call different sidebars for different pages?

If you’re using static pages, try using is_page() for your conditionals. Let’s assume your static pages have slugs, “customers”, “vendors”, and “services”: <?php if ( is_page( ‘customers’ ) : get_sidebar(‘customer’); elseif ( is_page( ‘vendors’ ) ) : get_sidebar(‘vendors’); elseif ( is_page( ‘services’ ) ) : get_sidebar(‘services’); else : get_sidebar(); endif; ?> But I agree with … Read more