The most specific page template is the one you chose in the Page Template dropdown option on the Edit Page screen. If you haven't chosen a template, WordPress will first look for page-slug.php, where slug is the page's slug. For example, page-about.php would be used for your About page.

If page-slug.php does not exist, WordPress will move on to page-id.php, where id is the ID of the page. For example, if you did not remove the About page that was installed with WordPress, its template would be page-2.php.

Failing all of that, WordPress will use the generic page template, page.php. If that does not exist, index.php will be used instead.

0 0

Post a comment