Static Page Hierarchy

In WordPress, pages are used to manage the structure of the website and contain timeless content. Usually, we call pages static, even though they're not as same as the pages of pure HTML websites we had in the old days. However, the content doesn't change often and hence is considered static compared to posts. In a basic site, you will find WordPress pages for contact, about, services, and so on. This path is divided into two types called Custom Template and Default Template. Let's start with Default Template so that we can understand the need for custom templates.

By default, WordPress pages are handled by either page.php, singular.php, or index.php. Most themes contain a separate page.php file for handling pages and ...

Get WordPress Development Quick Start Guide 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.