本章介绍构建 WordPress 主题的基础知识,包括主题结构、文件组织、The Loop 以及功能扩展方法。
In this chapter, you’ll begin learning how to build a theme. The anatomy of a theme and its parts will be broken down and explained.
You’ll begin by understanding the concepts of building a theme by looking at theme files and post types. Then you’ll learn how to keep your files organized within your theme.
You’ll also look at The Loop, which is responsible for pulling content out of the WordPress database.
Finally, you’ll learn more about adding features to your theme by using theme functions, including CSS & JavaScript, leveraging conditional tags to only show content you need, and working with default taxonomies and creating your own.