Created
March 8, 2016 07:42
-
-
Save MasterHans/e3bf0eedd21d844aa0cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Отображение главной страницы | |
home.php | |
index.php | |
Отображение Главной страницы | |
front-page.php - Используется для страниц Ваши последние записи или Статическая страница как выбор в пункте меню Статическая главная страница раздела Внешний вид -> Настроить | |
Page display rules - Когда в разделе Внешний вид -> Настроить в пункте меню Статическая главная страница выбрана Статическая страница | |
Home Page display rules - Когда в разделе Внешний вид -> Настроить в пункте меню Статическая главная страница выбраны Ваши последние записи | |
Отображение одиночной записи | |
single-{post_type}.php - Например, если тип записи — product, то WordPress обратится к файлу single-product.php. | |
single.php | |
index.php | |
Отображение статической страницы | |
custom template - Where custom template is the Page Template assigned to the Page. | |
page-{slug}.php - If the page slug is recent-news, WordPress will look to use page-recent-news.php | |
page-{id}.php - Если ID страницы 6, WordPress попытается обратиться page-6.php | |
page.php | |
index.php | |
Отображение рубрики | |
Category Templates: | |
category-{slug}.php - If the category's slug were news, WordPress would look for category-news.php | |
category-{id}.php - If the category's ID were 6, WordPress would look for category-6.php | |
category.php | |
archive.php | |
index.php | |
Отображение метки | |
Tag Templates: | |
tag-{slug}.php - If the tag's slug were sometag, WordPress would look for tag-sometag.php | |
tag-{id}.php - If the tag's ID were 6, WordPress would look for tag-6.php | |
tag.php | |
archive.php | |
index.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment