Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

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




Post a Comment

If you have any doubt in programming or join online classes then you can contact us by comment .

Previous Post Next Post