Thord Daniel Hedengren - Smashing WordPress_ Beyond the Blog-Wiley (2014)

(avery) #1

CHAPTER 4 • WordPress Theme Essentials 69


Figure 4-1: A basic blog layout.


As you may have gathered, everything revolves around index.php. However, there are other
template files that can replace index.php, depending on the situation. If you’re on the front
page, for example, home.php takes the top slot, and index.php will be used only if there isn’t a
home.php file. The same goes for single post view, in which single.php takes precedence over

Free download pdf