Create a PHP template for a WordPress Theme

Creating a WordPress template page is fairly straightforward.

  1. Create a file named SomeTemplateName.php.
  2. Add these lines of code

<?php

/* Template Name: Some_Template_Name */

?>

Save the file

FTP the file to the folder of the theme for which you are writing the template

Then, in the WordPress backend for your site you can add a page and select Some_Template_Name as its template, and go from there.

Scroll to Top