My name’s Jen; I’m a cynical, sarcastic, ex-drummer who is fond of dark humor. I've held way too many factory & retail jobs but finally found my calling one Christmas holiday in a dark, musty basement. I am now a CSS & XHTML web standards looney and can be found daily—when I’m not at my Mac—at the local fair-trade coffee shop buying an iced-soy mocha no matter the temperature.
I am also the owner of Pop Stalin Design specializing in CSS & XHTML web design as well as custom WordPress themes.
I get so many new items for my ‘to-do’ list from you. Maybe I should unsubscribe.
Nah, just get a longer piece of paper.
Hello Jen, I just stumbled across your blog today and started digging through your archives and came across this post and figured I’d let you know that WordPress actually has a built in method for using category templates. It’s called Template Hierarchy, which means WordPress will actually search for very specific templates and gradually fall back to more general templates before it finally decides to use index.php.
So instead of using Page Templates, you could create a category-3.php, category-4.php, and category.php and get rid of the code above. Check out Template Hierarchy and Category Templates in the WordPress Codex for more info. Keep up the great blogging!
@ Brady- thanks for the tip. Anything to make my WP development easier, the happier I am.