WordPress Course // Lesson 7. Page Templates and File Hierarchy

Опубликовано: 26 Сентябрь 2026
на канале: Glo Academy
9,436
194

To display a specific page, Wordpress selects a template for that page. It searches for templates in the theme folder. For example, if we need to display the "Services" page, which has an ID of 25 and a slug of "uslugi," it will first look for the template for that page, which we manually specified in the page settings.

It will then look for the page-uslugi.php file to display the page's layout. If it doesn't find such a file, it will look for page-25.php, then just page.php, and so on until it finds a template included in the theme.

If no templates are found, it will simply display index.php. This is called the file hierarchy of a Wordpress theme. We know in advance how Wordpress will select a template and can create templates with layouts for different pages. That's what we'll do in today's lesson.

___

These are recordings of our recently completed private paid course on Wordpress. We've decided to make the video lessons from this course freely available on YouTube.

However, we haven't posted the assignments, materials, source code, or the final project. If you want to access the full course, follow this link: https://glo-academy.org/wordpress_dev... Telegram channels with design mockups for layout practice:
https://ttttt.me/figma2html
https://ttttt.me/figma_start
https://ttttt.me/figmatamplates

Channels with cool CSS and JavaScript features:
https://ttttt.me/codepen_js
https://ttttt.me/css_features

Channel with IT terminology:
https://ttttt.me/slang_it

Channel with links to useful services and websites:
https://ttttt.me/linkforwork