Contents

About the Author

Introduction

PART I: WHAT ARE WORDPRESS THEMES?

Chapter 1: Getting Started with WordPress

Installing WordPress in Just Five Minutes

Running WordPress Using a Web Host

Running WordPress Locally

Fine Tuning Your WordPress Settings

Permalinks

Media Settings and the Upload Folder

Other Noteworthy Settings

Shameless Self Promotion

WordPress Theme Files

WordPress As a CMS

Posts, Pages, and New Custom Post Types

Taxonomies

Custom Post Types

The WordPress Codex

Wrapping It Up

Chapter 2: This Is a Theme

About Themes

The Stylesheet

Theme Declaration

Set Tags for Your Theme

Define a Child Theme

Add Comments for Developers

The Template Files at Your Disposal

Header and Footer Template Files

The Loop and Your Content

What is the WordPress Loop?

The Loop Template Tag

Using the Loop in Template Files

The functions.php File

Using Page Templates

Creating a Page Template

Why Use Page Templates?

Understanding Template Tags

Wrapping It Up

Chapter 3: Digging into the Twenty Ten Theme

Working with the Loop

A Loop with Content

The External loop.php File

Do I Have to Use loop.php?

The Twenty Ten Loop

Displaying Posts with Loops

Example: Listing Only Titles in Category Archives

Working with Template Tags

Passing Parameters

About Strings, Booleans, and Integers

Finding the Template Tag You Want

A Few Words about Localization

Conditional Content with Conditional Tags

Working with Conditional Tags

Example: Adding Conditional Sidebars

Enabling Features in functions.php

Add the add_theme_support ...

Get SMASHING: WordPress Themes: MAKING WORDPRESS BEAUTIFUL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.