create a template in wordpress

    By: Manu
    3 years ago

    Creating Template in wordpress is easy, So all we need to do create a php file. Let's call it "special.php" (You can call it anything). Now add comment in this file as given below.

    <?php
    /*
    Template Name: Special Page
    */
    
    
    // rest code goes here
    
    ?>
    


    Here we are registering Template with the name "Special Page" again You can call it anything.

    it will now appear in edit page under WordPress dashboard.

    Select here under Template and save. Then this template file will Power this very page. You can assign template to multiple pages.