<?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; ?>
Monday, April 29, 2019
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)); ?>
Sunday, April 14, 2019
लुक्लामा हवाईजहाज र हेलिकोप्टर ठोक्किए
समिट एयरको जहाज उड्ने बेलामा चिप्लिएर पार्किङ गरिराखेको हेलिकोप्टरसँग ठोक्किएको छन् ।लुक्ला विमानस्थल विश्वकै कठिन विमानस्थलहरुमध्येमा पर्दछ ।लुक्ला विमानस्थलमा समिट एयरको हवाईजहाज र मनाङ एयरको हेलिकोप्टर ठोक्किँदा तीन जनाको मृत्यु भएको छ । दुर्घटनामा २ जना घाइते भएका छन् ।
see video
https://www.youtube.com/watch?v=3B8UHbaK4ik
see video
https://www.youtube.com/watch?v=3B8UHbaK4ik
Wednesday, April 10, 2019
Alignment Css
.alignright{ float:right; margin-left:20px;}
.alignleft{ float:left; margin-right:20px;}
.aligncenter{ display: block;
clear: both;
margin-right: auto;
margin-left: auto;}
.alignleft{ float:left; margin-right:20px;}
.aligncenter{ display: block;
clear: both;
margin-right: auto;
margin-left: auto;}
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...