Using conditional functions in WordPress

When creating custom themes for WordPress, often you'll need to load different styles or scripts for a specific page template, or for the home page. One way to do it is to create a different header or footer that includes those files, and then load the custom header or footer from the page…