In this chapter, we will cover:
Creating a basic Loop
Displaying ads after every third post
Removing posts in a particular category
Removing posts with a particular tag
Highlighting sticky posts
Creating multiple loops in a single template
Displaying only posts in a particular category
Styling every other post differently
Styling posts in a particular category differently
Showing every post in a category on a category archive page
The Loop is the basic building block of WordPress template files. You'll use The Loop when displaying posts and pages, both when you're showing multiple items or a single one. Inside of The Loop you use WordPress' template tags to render information in whatever manner your design requires.
WordPress provides the data required for a default Loop on every single page load. In addition, you're able to create your own custom Loops that display post and page information that you need. This power allows you to create advanced designs that require...