Web Shakehands
Web Shakehands

Language


The priority order of the WordPress template file



Template files used in WordPress themes are determined by their priority.
For example, the file single.php is used to display the post page, but if this file does not exist, the file index.php is used.

In other words, single.php, has higher priority than index.php, so single.php is used.

In addition, the top page file has priority, such as front-page.php > home.php > index.php.

(">" Indicates priority.)

In this case, front-page.php has a higher priority than home.php, and home.php is higher than index.php.

Below, each priority is listed in chart form.

A. is the highest priority.
Continue with B. , C.~

See English chart from here
Chart







このエントリーをはてなブックマークに追加

This article title

The priority order of the WordPress template file

Previous article Display WordPress "Posted Articles List" in short code


WordPress Theme creation Article !

2019-08-24 The priority order of the WordPress template file NEW!


2019-08-22 Display WordPress "Posted Articles List" in short code


2019-08-01 Use add_theme_support() to set custom header for WordPress


2019-07-24 How to correctly write "hard-coded URL" in wordPress theme


2019-07-19 TGM Plugin Activation is a tool that can install a plugin from WordPress theme


2019-07-13 How to use Bootstrap inside WordPress theme


See all the articles list

Just enter your E-mail and you will receive free
mail magazine about how to make your website etc.
E-mail:
  

Go to top