You don't have to limit yourself to creating a static-page template for your site. You can use specific templates for the categories you've created on your blog (which we talk about in Book III, Chapter 7) and create unique sections for your site, as Lisa did (with an espresso chaser, of course).
Figure 6-4 shows Lisa's design portfolio. Design Portfolio is the name of a category that she created in the WordPress Dashboard. Instead of using a static page for the display of her portfolio, she used a category template to handle the display of all posts made to the Design Portfolio category.
You can create category templates for all categories in your blog simply by creating template files that have filenames that correspond to the category ID numbers, and then uploading those templates to your WordPress themes directory (see Book VI). Here's the logic to creating category templates:
Table 6-1 shows three examples of the category template naming requirements.
If the Category ID Is . . . | The Category Template Filename Is . . . |
1 | category-1.php |
2 | category-2.php |
3 | category-3.php |