My space web page - BLOG DESIGN SOLUTIONS Simply save this code as
Wednesday, October 31st, 2007BLOG DESIGN SOLUTIONS
Simply save this code as category.php and place it in /wp-content/themes/default/. Now that we have a category template file, we need to decide what we want to customize. Let s make this the Gorillas category. Heh, gorillas are funny. Make sure to have more than the Uncategorized category to play with. Create a new category by going to the Dashboard and selecting Manage . Categories. Call the category Gorillas and give it a description if you want. Finally click Add Category. Make a note of its ID because you ll need that in a second. You also need to have at least one post in a category before you can see it, so go ahead and add a post by clicking Write . Write Post in the Dashboard. When you have written it, make sure you select the Gorillas category at the top right and then click Publish. You can now view the category from the frontpage of the blog. You ll now create a template for the Gorillas category (with whichever category number you noted in the last paragraph), okay? Good. You need to have some links to gorilla resources on the Net offered to your visitors while they are in your Gorillas category listing. First, we edit our previous template name section like so: Now usually we would want to just call and include the template file sidebar.php, but we want to add context-sensitive info, and the menu is the best place for it. So we will be hard coding this bit in this template between the closing div and before calling the footer: