Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

k

// Add Shortcode
function custom_shortcode_contact() {

	// Code
<?php get_header();the_post();?>
<?php if(isset($_POST['submit_this_monk']))
{
print_r($_POST);
$con = "";
foreach ($_POST as $field => $value) {
  $con .= $field .  "  :  " . $value . "rn";
}


mail('[email protected]', 'Package query Form submitted', $con);


}
?>
<div id="content">
   <div class="inner">
      <div id="main">
<div class="left-main-box">  
      <div class="package-wrapper">  
        <div class="package-heading">
          <h1><?php the_title();?></h1>
          <h2> </h2>
        </div> 
       

        <div class="pack-left-col"> 
          <div class="pack-banner"> <?php the_post_thumbnail('thumbnail');?></div>
          <div class="pack-text">
            <ul>
              <li><span>Departure City : </span><?php echo get_post_meta( get_the_ID(), 'departure_city' , true);?> </li>
              
              <li><span>Duration : </span><?php echo get_post_meta( get_the_ID(), 'duration' , true);?> </li>
               
              <li><span>Validity : </span> <?php echo get_post_meta( get_the_ID(), 'validity' , true);?> </li>

         <!--*****<li><span>Inclusions : </span> <?php echo get_post_meta( get_the_ID(), 'inclusions' , true);?> </li>****-->

          </ul>
          </div> 
          <div class="pack-inclusion">
<ul><li>
<span>Inclusions :</span>
               <?php echo get_post_meta( get_the_ID(), 'inclusions' , true);?><ul></li>
          </div> 
        </div> 
         
        <div class="pack-right-col"> 
           
          <div class="price-tag"> 
            
            <!--  price text start -->
            <div class="price-text">
              <h2>Rs.<?php  echo get_post_meta( get_the_ID(), 'price' , true);?></h2>
              <p>Per Person</p>
              <h1><?php echo get_post_meta( get_the_ID(), 'duration' , true);?></h1>
            </div> 
            <div class="send">
              <ul>
                 
                <li> <a href="<?php echo get_post_meta( get_the_ID(), 'booking_url' , true);?>" title="Send">Book Now</a> </li>
                 
              </ul>
            </div> 
          </div>   
        </div>
       
        
      </div>
 















      <div class="itnery-wrapper"> 
      
                                                 <?php the_content();?>
         
       </div>


        
        <!-- pack-price-start -->
        <div class="pack-price">
          <ul>
            <!-- li start -->
            <li>
              <span>Price</span>
            </li>
            <!-- li end --> 
            <!-- li start -->
            <li>
              <h6>Rs.<?php  echo get_post_meta( get_the_ID(), 'price' , true);?></h6>
            </li>
            <!-- li end -->
            
          </ul>
           </div>
        <!-- pack-price-end --> 
        
        <!-- pack-btn-start -->
        <div class="pack-btn">
          <ul>
<li> <a href="#"><img src="http://www.solutioncenter.co.in/wp-content/themes/travelPortal/common/images/live-chat.png" title="Live Chat" alt="Live Chat"> </a></li>            
<li><a href="#"> <img src="http://www.solutioncenter.co.in/wp-content/themes/travelPortal/common/images/send-enquiry.png" alt="Send Enquiry" title="Send Enquiry"> </a></li>
            
          </ul>
        </div>
        <!-- pack-btn-end --> 
        
      </div>
      
      <!--*********************** query-block-start ********** -->
      <div class="query-block"> <form method='post'>
        <!--~~~~~~~~~~~~~~ itnery-query-start~~~~~~repeat~~~~ -->
        <div class="itnery-query">
          <h2>Personal Information </h2>
          <ul>
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Name<span> :</span></label>
                <input name="Name" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> E-mail<span> :</span></label>
                <input name="Email" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Address<span> :</span></label>
                <input name="Address" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> City<span> :</span></label>
                <input name="City" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Phone No.<span> :</span></label>
                <input name="Phone_No" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> Mobile No. <span> :</span></label>
                <input name="Mobile_No" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ -->
          </ul>
        </div>
        <!--~~~~~~~~~~~~~~ itnery-query-end~~~~~~repeat~~~~ --> 
        
        <!--~~~~~~~~~~~~~~ itnery-query-start~~~~~~repeat~~~~ -->
        <div class="itnery-query">
          <h2>Other Information</h2>
          <ul>
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Tour Name<span> :</span></label>
                <input name="tour_name" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> No of Days<span> :</span></label>
                <input name="No_of_Days" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> No of Adults<span> :</span></label>
                <input name="No_of_Adults" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label>No of Children<span> :</span></label>
                <input name="No_of_Children" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Hotel Category<span> :</span></label>
                <select name="Hotel_Category" class="itnery-sel">
                  <option selected="selected" value="standard">Standard</option>
                  <option value="deluxe">Deluxe</option>
                  <option value="luxury">Luxury</option>
                </select>
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> No of Rooms<span> :</span></label>
                <input name="No_of_Rooms" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li> 
              <!-- it-col1-start -->
              <div class="it-col1">
                <label> Arrival Date<span> :</span></label>
                <input name="Arrival_Date" type="text" class="itnery-input">
              </div>
              <!-- it-col1-end --> 
              
              <!-- it-col2-start -->
              <div class="it-col2">
                <label> Dep. Date<span> :</span></label>
                <input name="Dep_Date" type="text" class="itnery-input">
              </div>
              <!-- it-col2-end --> 
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li>
              <h3> Include Flight Ticket</h3>
              <p>
                <input name="Flight_Ticket" type="radio" value="yes">
                Yes</p>
              <p>
                <input name="Flight_Ticket" type="radio" value="no">
                No</p>
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li>
              <h3> Other Requirement Please Specify It.</h3>
              <textarea name="Other_Requirements" class="itery-textarea"></textarea>
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ --> 
            
            <!--~~~~~~ li start ~~~repeat~~~ -->
            <li><input type="hidden" name="Package_Name" value="<?php the_title();?>">
	       <input name="" Type="reset" value="reset" class="it-btn">
              <input name="submit_this_monk" type="submit" value="submit" class="it-btn">
            </li>
            <!--~~~~~~ li end ~~~repeat~~~ -->
            
          </ul>
        </div>
        <!--~~~~~~~~~~~~~~ itnery-query-end~~~~~~repeat~~~~ --> 
        </form>
      </div>
      <!--*********************** query-block-end ********** --> 
      
    </div>







</div></div></div>
<?php get_footer(); ?>
}
add_shortcode( 'contact', 'custom_shortcode_contact' );