How To Create WordPress Custom Page Template

Creating Wordpress custom page template is must if you want to start with wordpress theme development. Custom template is a gold mine when you start to implement a new theme from scratch because from here you start bulding your theme. Wordpress is one of the most used platforms for different purposes. If we'll count all the websites which are built using a CSM as backend, 60% of them are Wordpress. Learning to modify a theme or building a theme from scratch it's one of the best things you can do.

Wordpress Custom Page Template

In order to create a new custom page template you have to open your favorite FTP client and create a new file.


  1. Open your ftp client
  2. Go to wp-content/themes/YourTheme folder
  3. Create a new folder named: templates
  4. Inside the templates folder create a new file MyTemplate.php
  5. Add the following comment to the top of the page
    * Template name: MyTemplate

It's just simple. The above comment will create a new template in wordpress backend.

We can assign this template to a page in admin.

  1. Go in admin
  2. Pages
  3. Create a new page
  4. In the right side of the page search the templates dropdown and select your new created template and hit save button.


0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x