What Is a Template? The Structure Behind a Page Type
DICTIONARY · WORDPRESS

What Is a Template?

A template is a reusable structure controlling how content is displayed.

In plain English

One template governs how all posts look, another how archives look, another the homepage. Content changes; the template does not.

WordPress chooses which template to use through a defined hierarchy, from most specific to most general. Understanding that order explains why a change did not appear where you expected.

What to know

Per content type
Single, archive, page, search.
Hierarchy decides
Most specific match wins.
Editable in the site editor
In block themes.
Separate from content
Which lives in the database.

Why it matters

Editing the right template is most of the work in changing how a site looks. The hierarchy is the reason a change to one file affects some pages and not others.

Common mistakes

×Editing a template that is not the one loading.
×Page-specific layouts where a template would serve.
×Templates in the theme with no child theme protection.
×Duplicating templates rather than using template parts.

FAQs

Why did my template change not appear?

A more specific template is loading. Check the hierarchy.

Where do I edit templates?

The site editor in block themes; theme files in classic themes.

WRITTEN BY TARIQ SALLAM
Marketing Consultant. Entrepreneur. Content Creator.

I'm a marketing consultant, entrepreneur and content creator. I help businesses grow through practical marketing, websites, SEO, content and AI.

More About Tariq →