Chapter 7. Creating an Advanced Theme

In the previous chapter, you learned how to create a theme with one basic Loop in each template file. In this chapter, you'll see how the Loop can be modified to display slightly different information: only one category, or all the categories except one, or even showing pages instead of posts.

To create a more advanced layout, you may need more than one Loop. In this chapter, you'll learn several ways of using multiple Loops. You'll also see how to add extra scripts and stylesheets to your theme and how to create an options form that allows your users to choose different layouts or color schemes from a few predefined choices.

Modifying the Loop

Normally, the Loop generates a list of posts based on the context ...

Get Beginning WordPress 3 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.