How to add template to theme in WP

WordPress does not allow adding files though the admin side of things, therefore you will need FTP or SSH access to the server to add a file to your theme directory at least to initially add the template then you can edit it though your hearts content in the admin. (there may be a plugin that allows the admin to add theme files but I’ve never looked)

Nevertheless, here’s how to add a new template…

  1. Create a new php file and include the following to create a custom template and upload it to wp-content/themes/clean-home

    <?php
     /*
    Template Name: My Template
    */
    ?>
    
  2. Then just add Your Loop

  3. Set a page to use your new custom template.

Protip: You may also be able to copy another template and change the name which will save you time of adding the header, footer, sidebar, and other styles with still allowing you to create a custom template.