Starkers – part 5

The loop displays the posts and the post content. See The Loop to understand it and Template Tags to understand the tags used in it.

Following is a description of the contents of the loop.php file in the theme:

loop.php

In starkers (which is derived from the twenty Ten theme), we use the same loop in multiple contexts. It is broken into three main parts: when we’re displaying posts that are in the gallery category, when we’re displaying posts in the asides category, and finally all other posts.

Additionally, we sometimes check for whether we are on an archive page, a search page, etc., allowing for small differences in the loop on each template without actually duplicating the rest of the loop that is shared.

Advertisements
This entry was posted in Starkers. Bookmark the permalink.