WordPress Template System

Creating a new template page for WordPress is a 2 step process and very easy to follow.

I’m going to presume you have a fresh install of wordpress.org for this tutorial.

Step 1: create template page

We can start with a sample file and copy page.php, rename it on your choice and put it inside the theme folder ../wp-content/themes/mytheme/

This file should start like the example below.

1
2
3
/*
Template Name: MyTemplate
*/

Step 2: select template in page

Now this template will be available for you to select when creating a new page. Below is a screen shot of how the new template will appear when creating a new page.