After reading extensively on Page Templates within the Codex and support forum, I’m under the impression that should I wish to have a particular layout for a particular page, then I should create a specific Page Template for that Page.
If this is correct, and on this basis, I am to assume then that should I wish to have a particular layout for a particular category, then I would need to create another single.php template and re-name itâ€¦ articles.php. Is this right?
I ask this because if I have five special categories for my primary navigation and three require different layouts (ie: widecolumn for articles but narrow column for topics) how will I call these templates when I write posts? I know I have to put some sort of get_function or include function?? in the main.php? to bring them into play when I write a post that is delegated to the category â€œarticlesâ€?.
Can someone please confirm if I need to insert all new category template functions within the main.php in order to call the new template/s or do I not put any function anywhere and WP will automatically call these templates whenever I delegate a post to a particular category.
Thanks heaps for your invaluable input!
- The topic ‘Category Templates’ is closed to new replies.