<?php 
/*
* Template Name: Jobs
*/
get_header(); ?>

<div id="full-content" class="about-page">
    <?php if(have_posts()) : ?><?php while(have_posts()) : the_post(); ?>
        <section style="background-image: url('<?php echo home_url(); ?>/wp-content/uploads/2018/11/about-banner-bg.jpg');"  class="about-banner-bg">
            <div class="container">
                <h1 class="page-title-cus">Jobs</h1>
            </div>
        </section>
        
        <div class="container">
		
            <div class="row about-content">
				 <div class="col-12 col-sm-12">
					<?php
						the_content();
					?>
				 </div>
                <div class="col-12 col-sm-12">
                     <?php
                    $type = 'Jobs';
                    $args=array(
                      'post_type' => $type,
                      'post_status' => 'publish',
                      'posts_per_page' => -1,
                      'order'    => 'ASC'
                    );
                    $my_query = null;
                    $my_query = new WP_Query($args);                 
                  if( $my_query->have_posts() ) { ?>                    
                      <?php while ($my_query->have_posts()) : $my_query->the_post(); ?>
                          
                          <div class="job-wrap">                            
                                <h2 class="jobs-title-h2"><?php the_title(); ?></h2>
                                 <div class="job-description"><?php the_content(); ?></div>
                          </div>
                      <?php
                      endwhile;
                    } ?>                     
                    <?php wp_reset_query();  // Restore global post data stomped by the_post().
                    ?>   
                </div>
                
            </div>
        </div>

    <?php endwhile; endif; ?>
</div>

  
<?php get_footer(); ?>