<!--
<div class="packages" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">Our <span>Best Selling Packages</span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p><strong>Trekintothinair</strong><em> offers trekking in almost all trekking trails of Nepal; among them, the following were the most popular and best selling trekking packages in 2018. These trails are most desired by the guests, but still, Nepal has much more to offer for the enthusiasts</em></p>
</div>
<div class="post-l">
<?php
$type = array( 'trek');
$bikashsoft_loop = new WP_Query( array(
'post_type' => $type,
'posts_per_page' => '6',
'meta_key'=>'our_best_selling_packages',
'meta_value'=>'1',
'suppress_filters' => true ));
while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
?>
<div class="post">
<a href="">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){ ?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php
$terms = get_the_terms( $post->ID , 'trek_category' );
foreach ( $terms as $term ) {?>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span><?php echo $term->name; ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="http://servicesnepal.com/trek/trekking/" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">
New <span> Trekking Route </span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal offers some of the best opportunities of climbing the highest and some of the famous mountain ranges of our country. One should need a good physical stamina and good trekking as well as technic...</p>
</div>
<div class="post-l">
<?php $args = array('post_type' => 'trek',
'tax_query' => array(
array(
'taxonomy' => 'trek_category',
'field' => 'term_id',
'terms' => 10,
),
),
'posts_per_page' => -1, 'orderby'=>'title','order'=>'ASC'); ?>
<?php
$query = new WP_Query($args);
if($query->have_posts()):
while ($query->have_posts()):
$query->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="</php the_permalink(); ?>"><?php the_title(); ?>k</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div id="item" class="tab-content" style="">
<div class="ol owl-carousel">
<?php
$type = array( 'trek');
$bikashsoft_loop = new WP_Query( array(
'post_type' => $type,
'posts_per_page' => '9',
'meta_key'=>'new_trek',
'meta_value'=>'1',
'suppress_filters' => true ));
if($bikashsoft_loop->have_posts() ) :
while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
?>
<div class="item">
<div class="post">
<a href="<?php the_permalink(); ?>">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href=""<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<div class="post__price"><?php the_field('regular_price'); ?>D</div>
</div>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
</div>
<div id="item4" class="tab-content" style="">
<div class="ol owl-carousel">
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="item5" class="tab-content" style="">
<div class="ol owl-carousel">
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="item6" class="tab-content" style="">
<div class="ol owl-carousel">
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="item7" class="tab-content" style="">
<div class="ol owl-carousel">
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp Trek</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
<div class="item">
<div class="post">
<a href="">
<figure class="post__figure">
<img src="<?php bloginfo('template_directory');?>/images/package1.jpg">
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="">Annapurna Base Camp </a>
</h3>
<div class="post__meta d-flex justify-content-between">
<div class="post__date">
<i class="fa fa-clock-o"></i> <span>6 Days</span>
</div>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span>Kathmandu Valley</span>
</div>
<div class="post__price">530 USD</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--
<div class="packages" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">Our <span>Best Selling Packages</span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p><strong>Trekintothinair</strong><em> offers trekking in almost all trekking trails of Nepal; among them, the following were the most popular and best selling trekking packages in 2018. These trails are most desired by the guests, but still, Nepal has much more to offer for the enthusiasts</em></p>
</div>
<div class="post-l">
<?php
$type = array( 'trek');
$bikashsoft_loop = new WP_Query( array(
'post_type' => $type,
'posts_per_page' => '6',
'meta_key'=>'our_best_selling_packages',
'meta_value'=>'1',
'suppress_filters' => true ));
while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
?>
<div class="post">
<a href="">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
</a>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){ ?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php
$terms = get_the_terms( $post->ID , 'trek_category' );
foreach ( $terms as $term ) {?>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span><?php echo $term->name; ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="http://servicesnepal.com/trek/trekking/" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">
New <span> Trekking Route </span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal offers some of the best opportunities of climbing the highest and some of the famous mountain ranges of our country. One should need a good physical stamina and good trekking as well as technic...</p>
</div>
<div class="post-l">
<?php $args = array('post_type' => 'trek',
'tax_query' => array(
array(
'taxonomy' => 'trek_category',
'field' => 'term_id',
'terms' => 10,
),
),
'posts_per_page' => -1, 'orderby'=>'title','order'=>'ASC'); ?>
<?php
$query = new WP_Query($args);
if($query->have_posts()):
while ($query->have_posts()):
$query->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="</php the_permalink(); ?>"><?php the_title(); ?>k</a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<!--
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">
Restricted <span> Trekking Route </span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal offers some of the best opportunities of climbing the highest and some of the famous mountain ranges of our country. One should need a good physical stamina and good trekking as well as technic...</p>
</div>
<div class="post-l">
<?php $args = array('post_type' => 'trek','tour','expedition','activity','peak',
'tax_query' => array(
array(
'taxonomy' => 'trek_category',
'field' => 'term_id',
'terms' => 140,
),
),
'posts_per_page' => -1, 'orderby'=>'title','order'=>'ASC'); ?>
<?php
$query = new WP_Query($args);
if($query->have_posts()):
while ($query->have_posts()):
$query->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail(); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="<?php echo home_url(); ?>/trek_category/restricted-trekking-route/" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">TOURS </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal is one of the leading and demanding touristic destinations of the world and this beautiful country located beneath the Himalayas offers some of the thrilling and adventurous tours packages to t...</p>
</div>
<div class="post-l">
<?php
$type = array( 'tour');
$bikashsoft_loop = new WP_Query( array(
'post_type' => $type,
'posts_per_page' => '6',
));
while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php
$terms = get_the_terms( $post->ID , 'tour_category' );
foreach ( $terms as $term ) {?>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span><?php echo $term->name; ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">PEAK <span>CLIMBING</span> </h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal offers some of the best opportunities of climbing the highest and some of the famous mountain ranges of our country. One should need a good physical stamina and good trekking as well as technic...</p>
</div>
<div class="post-l">
<?php
$type = array( 'peak');
$bikashsoft_loop = new WP_Query( array(
'post_type' => $type,
'posts_per_page' => '6',
));
while($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php
$terms = get_the_terms( $post->ID , 'peak_category' );
foreach ( $terms as $term ) {?>
<div class="post__location">
<i class="fa fa-map-marker"></i> <span><?php echo $term->name; ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="" class="btn btn--primary">View More</a>
</div>
</div>
</div>
<div class="packages p-t-60" >
<div class="container">
<div class="heading text-center m-b-30">
<h2 class="heading-center d-inline-block">MULTIPLE <span>COUNTRY TOUR</span></h2>
</div>
<div class="heading-sub text-center m-b-30">
<p>
Nepal offers some of the best opportunities of climbing the highest and some of the famous mountain ranges of our country. One should need a good physical stamina and good trekking as well as technic...</p>
</div>
<div class="post-l">
<?php $args = array('post_type' => 'tour',
'tax_query' => array(
array(
'taxonomy' => 'tour_category',
'field' => 'term_id',
'terms' => 14,
),
),
'posts_per_page' => -1, 'orderby'=>'title','order'=>'ASC'); ?>
<?php
$query = new WP_Query($args);
if($query->have_posts()):
while ($query->have_posts()):
$query->the_post();
?>
<div class="post">
<figure class="post__figure">
<?php the_post_thumbnail('package'); ?>
</figure>
<div class="post__body">
<h3 class="post__title">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</h3>
<div class="post__meta d-flex justify-content-between">
<?php if(get_field('duration')){?>
<div class="post__date">
<i class="fa fa-clock-o"></i> <span><?php the_field('duration'); ?></span>
</div>
<?php } ?>
<?php if(get_field('regular_price')){?>
<div class="post__price"><?php the_field('regular_price'); ?></div>
<?php } ?>
</div>
</div>
</div>
<?php endwhile; endif; wp_reset_postdata(); ?>
</div>
<div class="btn-wrap m-t-30 text-center">
<a href="<?php echo home_url(); ?>/tour_category/multiple-country-tour/" class="btn btn--primary">View More</a>
</div>
</div>
</div>
-->
Tuesday, May 14, 2019
Monday, April 29, 2019
how to retrive the category image in archive.php page
<?php
if (z_taxonomy_image_url($term->term_id,'banner') ) : ?>
<figure>
<img src="<?php echo z_taxonomy_image_url($term->term_id,'banner'); ?>" />
</figure>
<?php endif; ?>
if (z_taxonomy_image_url($term->term_id,'banner') ) : ?>
<figure>
<img src="<?php echo z_taxonomy_image_url($term->term_id,'banner'); ?>" />
</figure>
<?php endif; ?>
Friday, April 26, 2019
To retrive cat id in archicve/category page
<?php
$category = get_queried_object();
echo $category->term_id;
echo $category->name;
?>
$category = get_queried_object();
echo $category->term_id;
echo $category->name;
?>
Thursday, April 25, 2019
archive-peak.php
<?php
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package visit_nepal
*/
get_header(); ?>
<?php
if ( have_posts() ) : ?>
<div class="background-bg"></div>
<div class="package_section p-tb-40">
<div class="container">
<div class="package_detail">
<div class="area-title">
<h2><?php the_archive_title();?></h2>
</div>
<?php
if (z_taxonomy_image_url($term->term_id,'banner') ) : ?>
<figure>
<img src="<?php echo z_taxonomy_image_url($term->term_id,'banner'); ?>" />
</figure>
<?php endif; ?>
</div>
<ul class="grid-3 packages_module_wrapper packages_module_wrapper--1">
<?php while ( have_posts() ) : the_post();?>
<li>
<div class="package-inner">
<figure>
<?php
if(has_post_thumbnail() ) {
the_post_thumbnail('package');
} ?>
</figure>
<div class="package-body-inner">
<h3><a href="<?php the_permalink();?>"><?php the_title();?></a> </h3>
<div class="package-itenary row ">
<div class="col-md-6 col-lg-6">
<?php if( get_field('duration') ): ?>
<p>Duration: <span class="itenary-font"> <?php the_field('duration'); ?>
</span></p>
<?php endif ?>
<?php if( get_field('price') ): ?>
<p>Start From : <span class="itenary-font"> <?php the_field('price'); ?>
</span></p>
<?php endif ?>
</div>
</div>
</div>
</div>
</li>
<?php
endwhile;
wp_reset_postdata();
?>
</ul>
</div>
</div>
<div class="search-not">
<?php else :
get_template_part( 'template-parts/content', 'searchnotfound' );
?>
</div>
<?php endif; ?>
<?php
get_footer();?>
/**
* The template for displaying archive pages.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package visit_nepal
*/
get_header(); ?>
<?php
if ( have_posts() ) : ?>
<div class="background-bg"></div>
<div class="package_section p-tb-40">
<div class="container">
<div class="package_detail">
<div class="area-title">
<h2><?php the_archive_title();?></h2>
</div>
<?php
if (z_taxonomy_image_url($term->term_id,'banner') ) : ?>
<figure>
<img src="<?php echo z_taxonomy_image_url($term->term_id,'banner'); ?>" />
</figure>
<?php endif; ?>
</div>
<ul class="grid-3 packages_module_wrapper packages_module_wrapper--1">
<?php while ( have_posts() ) : the_post();?>
<li>
<div class="package-inner">
<figure>
<?php
if(has_post_thumbnail() ) {
the_post_thumbnail('package');
} ?>
</figure>
<div class="package-body-inner">
<h3><a href="<?php the_permalink();?>"><?php the_title();?></a> </h3>
<div class="package-itenary row ">
<div class="col-md-6 col-lg-6">
<?php if( get_field('duration') ): ?>
<p>Duration: <span class="itenary-font"> <?php the_field('duration'); ?>
</span></p>
<?php endif ?>
<?php if( get_field('price') ): ?>
<p>Start From : <span class="itenary-font"> <?php the_field('price'); ?>
</span></p>
<?php endif ?>
</div>
</div>
</div>
</div>
</li>
<?php
endwhile;
wp_reset_postdata();
?>
</ul>
</div>
</div>
<div class="search-not">
<?php else :
get_template_part( 'template-parts/content', 'searchnotfound' );
?>
</div>
<?php endif; ?>
<?php
get_footer();?>
Wednesday, April 24, 2019
Wednesday, April 17, 2019
To show flags on site using Polylang plugins
<?php pll_the_languages(array('show_flags'=>1,'show_names'=>1)); ?>
Subscribe to:
Posts (Atom)
Featured Post
Make money online
https://www.wpbeginner.com/beginners-guide/make-money-online/?fbclid=IwAR0_9_5aHmbB4rDisaPevdnO4uAgo0N9heHgPu1TjerjurE5ilD2NyzeB2A
Popular Posts
-
DALCHOKI AS "BHEDETAAR" OF KATHMANDU Dalchoki is a village development committee in Lalitpur District in the Bagmati Zone of Ce...