O'Reilly logo

Beginning WordPress 3 by Stephanie Leary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required