Page Template in WordPress

0
Page Template in WordPress:-

The template is used to provide a unique view in WordPress theme .it can be used to provide extra design layout in the WordPress theme.


Template always will be created under WordPress theme.

Example of WordPress Template:-

<form action="" method="post">

     <input type="text" name="txtp" placeholder="Enter First Number" />
     <br>
     <br>
     <input type="text" name="txtr" placeholder="Enter Second Number" />
      <br>
      <br>
      <input type="submit" name="btnsubmit" value="ADD" />

</form>

<?php
     if(isset($_REQUEST['btnsubmit']))
     {
      $a = $_REQUEST['txtp'];
      $b = $_REQUEST['txtr'];
      $c=$a+$b;
      echo "Result is ".$c;
     }


?>


How we set the template in WordPress:-

Go into dashboard |pages |document|template




Tags

Post a Comment

0Comments

POST Answer of Questions and ASK to Doubt

Post a Comment (0)