Wednesday, July 31, 2019

echo get_post_meta

https://www.wpbeginner.com/wp-tutorials/how-to-add-additional-custom-meta-fields-to-custom-taxonomies/

<?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="package_section p-b-40">

<div class="package_detail">
<figure>
<img src="<?php echo z_taxonomy_image_url($term->term_id,'banner'); ?>" />

</figure>

<div class="banner__text text-center">
 
    <h1><?php the_archive_title();?></h1>
     
 
<!-- meta value -->
<?php
if (function_exists('get_all_wp_terms_meta'))
{
   $arrayMetaList = get_all_wp_terms_meta($category_id);
}

// array all meta fields for category/term
print_r($arrayMetaList);
?>
<?php echo print_r($arrayMetaList); ?>
    <?php
if (function_exists(‘wp_get_terms_meta’))
{
$MetaValue = wp_get_terms_meta('2', 'title-kiker' ,true);
}
//echo $MetaValue;
?>
<?php function get_post_meta( $post_id, $key = 'title-kiker', $single = false ) {
    return get_metadata( 'post', $post_id, $key, $single );
}
?> <?php echo get_post_meta( $post_ID, 'title-kiker', $single ); ?>

<p>
<?php //echo $MetaValue; ?>
</p>
       



 
 </div>
</div>

<div class="container">

<div class="main-top">
 <?php the_archive_description();?>
</div>

 <ul class="grid-3 packages_module_wrapper packages_module_wrapper--1">
   <?php while ( have_posts() ) : the_post();?>
       <li>
          <div class="package-inner">
          <a href="<?php the_permalink();?>">
          <figure class="post__figure">
             <?php
              if(has_post_thumbnail() ) {
                the_post_thumbnail('package');
              } ?>
           
              <?php if(get_field('price')){ ?>
              <div class="post__date">
              <?php the_field('price'); ?>
               </div>
               <?php } ?>
           
  </figure></a>
            <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();?>

Tuesday, July 30, 2019

google sanga join

1google console
2google analytics

great nepaltreks.com

tipsforpetcare.com

इलुङ झरना -
तनहुँको भिमाद नगरपालिका–९ पाथर्दीस्थित इलुङ झरना । आगामी असोजदेखि क्यानोनिङ शुरु गर्नका लागि झरनासम्म पुग्ने अप्ठ्यारो बाटोमा सिढी र रेलिङको निर्माणकार्य गरिँदै ।

Sunday, July 28, 2019

visit nepal 2020



Introduction:

Nepal is a small landlocked country mostly well known by the name of highest mountain in the world and enriched natural and cultural heritages. Lying in between buffer zone of China and India, it has got lots of offerings and opportunities to explore, research, experience and experiment in your life. Visitnepal2020  welcomes visitors all around the globe to join this campaign to explore the hidden treasure and experience off the beaten trail into the high Himalayas and unfrequented remote area of Nepal.  After four successful tourism years of Nepal, Visit Nepal 2020 is going to be fifth campaign which is being organized and managed in well appreciated and sustainable way for figuring out the hidden treasure of whole Nepal along with natural, cultural, historical and religious heritages of Nepal.
There are lots of things to do in Nepal such as exploring Nepal Himalayas and experiencing innocent Himalayan People, wildest journey into the rocky hills and amazing landscapes, exploring historical, cultural and religious heritages and finally experiencing festivals of Nepal and lots of outdoor activities and opportunities.
There are various things offered by this small beautiful country. Some of the major highlighted activities for uplifting tourism market and promoting of  Visit Nepal 2020 includes the following activities:

                                                  Photo: Mt.Everest

Trekking in Nepal is one of the major outdoor activities with lots of challenges, enjoyments and opportunities. Trekking categorized in several groups in Nepal such as mountain trekking, remote area and nature trekking and cultural and religious trekking. Although a bit mental and physical fitness may require but we offer you to explore high Himalayas, visit many religious temples, monasteries, lakes and stupas and wildest journey into the unfrequented zones of Nepal to have ultimate adventure of trekking in your life.

Nepal is a home of four out of five highest peaks in the world and includes other hundreds of peaks providing its visitors rarest opportunity to reach the summit of high peaks. Your ultimate happiness awaits you in your life and can achieve by summiting high peaks of the world. We invite you to grab the opportunity to make one of the most memorable journeys in your life.


2.     Rafting

                                     Photo: Rafting in speed flowing water

Rafting is one of the adventurous sports full of excitements and thrills. Rafting in Marshyangdi, Trisuli, Bhotekoshi and many more rivers provides you an ultimate adventure of travel and thrill with various levels of grades. Passing through different geological structures, terrains and landscapes, rafting in Nepal helps you to explore something new and unique in your life.

3.     Paragliding

                                            Photo: Paragliding at Pokhara

Paragliding is one of the scenic and adventurous flying sports letting you to experience higher elevation views of everything nearby and sometimes far away from that place. Paragliding in Pokhara lets you see the world from different view mixed with adventure and thrills.

4.     Mountain Biking:


Mountain biking is another adventurous mixed with excitement and thrill sport allowing you to explore the mountain world in short period of time. Biking itself is an adventurous sport and visitnepal2020 offers you to explore and keep look around mountain side of Nepal with mountain bike letting you to find something new and unique about the place as well as journey.

5.     Nature Tour, Safari and Biodiversity in Nepal
Nepal is considered as a heaven country because of being enriched in natural heritages and its unexploited nature. Nature is the most beautiful attraction for all the people around the world which helps to refresh and arise positive vibes in every human being. Beautiful forests, high mountains, beautiful terrains and landscapes and mesmerizing rivers and gorges surely give heavenly pleasure and provide positive meaning of your life.
Jungle Safari in Chitwan is one of the rarest and wild journeys into Chitwan National Park allowing you to explore the wild jungle which houses many wild animals including rare and endangered one. Bird watching is another enjoyable activity to be done in Nepal and you can do this activity in most famous Shukla Panta National Park and Koshi Tappu Wildlife Reserve and considered as best bird watching spot of Nepal.
Taking about the Biodiversity in Nepal, it is a home of 185 mammals and 850 species of birds. National park and wildlife reserve of Nepal house many rare and endangered species including Snow Leopard, One horned Rhinoceros, Red Panda, Royal Bengal Tiger and many more. Bardiya National Park houses Royal Bengal Tiger in its setting and you can witness the one-horned rhinoceros at Chitwan National Park.

6.     Religious and Social-cultural Exchange
Nepal is a rich country in religious and cultural heritages. Most of the people here follow Hindu religion and considered as a Hindu country. Many temples, lakes and mountains have religious significance and have their own values. Temples like Pashupatinath, Manakamana, Changu Narayan, etc. have own religious values. Apart from Hinduism, Buddhism also has taken part in the country. As Buddha Was Born in Nepal, there are lots of monasteries, Stupas and cultural heritages sites. Swoyambhunath is one of the most attractive heritages of Buddhists.
Apart from religious values, Nepal has enriched cultural and traditional values and exploring the deep culture, traditions and values of different ethnicity of Nepal will surely provide a unique experience in your life.

UNESCO have listed four World Heritage Sites in Nepal out of which two have been listed as per natural elements of Nepal and next two have been listed based on their cultural and religious significance and importance, which includes,
1.     Kathmandu Valley
2.     Lumbini (The birth place of Lord Buddha)
3.     Sagarmatha National Park and,
4.     Chitwan National Park

Kathmandu Valley by name may consist only one heritage site which is completely wrong. Inside Kathmandu valley, there are seven heritage sites which includes,
-Kathmandu Durbar Square
-Pashupatinath
-Boudhanath
-Swoyambhunath
-Bhaktapur Durbar Square
-Patan Durbar Square
-Changu Narayan Temple


However, some of the summarized activities that will get chance to experience during Nepal Visit Year 2020 are categorized as,
Things to do in Nepal on Water:
You can take part in adventurous and thrilling water sports, such as, Rafting, Boating, Fishing, Canoeing, Jet Ski, Kayaking, Angling and Cascading.
Things to do in Nepal by Air:
Enjoy the Air Sports including Sky diving, Ultra-light Aircraft, Hot air ballooning, Hang gliding, Cable car, Mountain flight and Paragliding for exploring and experience the tourism of Nepal by being in higher elevation.
Things to do in Nepal on Land:
Many enjoyable and explorative sports on land include Skiing, Golf, Elephant polo, Triathlon, Mountaineering, Trekking, Jungle safari, Wildlife tourism, Honey hunting, Mountain biking, Motor rally and so on.
Special Tours in Nepal:
Different tours programs are organized and managed by the trekking agencies of Nepal which includes, Educational tourism, Village tourism, culture tourism, Agro-tourism, Community based tourism, Spiritual tourism or pilgrimage, Health and Wellness tourism and many more.


Moreover, as a visitor, you can also support Visit Nepal 2020 by various means which may help the travellers and adventure seekers to know about the campaign and take part in this program with reasonable supports. You can tell your friend about this campaign and about the places you have visited in Nepal, buying the locally crafted materials of local people of villages instead of fancy materials, getting a guide to provide you enough information about Nepal and the place you are visiting and frankly being friendly tourist while travelling in Nepal.

Conclusion:

However, for all the adventure seekers and natural lovers all around the world, Visit Nepal 2020 is going to be organized in Nepal in 2020, welcoming all the visitors to take part in this program for exploring something new and different in your life as well as providing support as an individual to make this 2020 year as a fully tourism year in Nepal. You are offered with lots of opportunities and adventurous deeds to look deep inside in Nepal and obtain heavenly pleasure in this peaceful and diverse country.


Thursday, July 25, 2019

rule of article writing

for free image
pixabay.com
unsplash.com
freepik.com
canva.com
google.com


1.Introduction
2.Body{types,categories.insight,option}
3.conclusion

Audinence oriented

1.Introduction
prolblem
solution
In betn 50 words focus keyword should appear
problem statement
assuarnace of solution
use of u and i

2.Body:
How long
precaution
media
food

Focus keyword(bold,italic,underline)
=>what u will introduce to others
=>introduce to search engine google in a sence.
=>high search volume high with low compettiton
LSI=>latent symentic indexing
      =>similar
      =>key related/suggested
     =>title ko subtitle


Keword research
serch volume=> >1000   nepal>100
cpc=>   >$o.5
comp=> <0.3
search result=> 10 M


ahrefs
search=>filter
export=>in excel
filter=>select focus keyword


focus keyword=>visit nepal 2020
LSI keyword (for google friendly)=>Where is Nepal?
                     =>Nepal travel
                     => Nepal on Map
                     => Yeti airlines
                    =>flights to kathmandu
                    =>kathmandu hotels

Body
=>4-5 line paragraph(user friendly)
=>sub heading=>HELPS USER to read the particular article which they needs which save times and trust in our article (h2 for google friendly)

=>sub heading bhitra cha bhane its minor heading which is written in (h3 google friendly)
=>short and sweet sentences(user friendly)


3.Conclusion
solution to visit nepal 2020=>service or product related


density=No of words/focus keyword (consider 0.5-1.25%)max upto 2.5%

visit nepal 2020=>3
no of words=>2000
will be in %

3/2000*100%


Rule of SEO Title

gofi=generation of fashion industry
how to ckeck ranking of our page in google
ahref=site explorer


greatnepaltreks.com
2nd page rank in google posted in 7 days

https://www.kapadaa.com/

http://www.highcampadventure.com/blog/how-long-does-it-take-to-climb-mount-everest/
rank in first page in google
gets good traffic

https://www.sevensummittreks.com/
Title research
should be user friendly and google friendly

Rule 1: Title length(55-65)char=.negetive message=>lenthy=>cut the title

Rule 2: Use of focus Keyword=>which have serach volume

This one rule and rule two make site Search engine friendly.

Rule 3: Use of power word(free.best,top.off,afraidness,dicount,stylish,latest,luxary,budgeted),untold myth,thrilling,untouched,unavaled,e,
wiped off lantang valley trek after earthquake  revived with nacromancy
,new trial,echo tour in everest,why are sherpa helpfull in expedition=>
the word which make our title powerful


Rule 4: Use of 5 WH  question how to(which,what, where,when)

Rule5: Use of number in title(odd no is deserve) =>5 trails to ebc=>got option for user
7 =>use nepali   13=>no use bidesi
7,9,10,11=>sports no
year=>current year should be always updated

Use of year=>world cup 2022
fashion nepal 2019 is preferable than fashion nepal 2018

content writing
10000 word per month

Safety measures to be adopted for everest base camp trek
Kala Patthar for an unobstructed view of Everest's windblown summit.
Lukla, the base point to Everest base camp trek

Is nepal safe to travel visit nepal 2020 besides massive earthquake
What to explore in visit nepal 2020 for unforgetable memory
Visit nepal 2020 |how to explore 17 destination in Nepal
Visit nepal 2020| Fabulous idea to expect and explore in Nepal.
How to explore visit nepal 2020  for Life time experience?

17 epic things to do in nepal that are
things to do in nepal while visiting nepal
THings to do in Nepal| all the fun without stress



Introduction:

As you know that Nepal is a small landlocked country mostly well known by the name of highest mountain in the world and enriched natural and cultural heritages. Why should you visit nepal 2020There are lots of things to do in Nepal such as exploring Nepal Himalayas and experiencing innocent Himalayan People, wildest journey into the rocky hills and amazing landscapes, exploring historical, cultural and religious heritages and finally experiencing festivals of Nepal and lots of outdoor activities and opportunities.
There are various things offered by this small beautiful country. Some of the major highlighted activities for uplifting tourism market and promoting of  Visit Nepal 2020 includes the following activities:
1 .Trekking and Mountainerring
2. Bungee Jump
3. Rafting
4.Canoying 
5.Jungle safari

Body Lying in between buffer zone of China and India, it has got lots of offerings and opportunities to explore, research, experience and experiment in your life.
Visit Nepal 2020  welcomes visitors all around the globe to join this campaign to explore the hidden treasure and experience off the beaten trail into the high Himalayas and unfrequented remote area of Nepal.  After four successful tourism years of Nepal, Visit Nepal 2020 is going to be fifth campaign which is being organized and managed in well appreciated and sustainable way for figuring out the hidden treasure of whole Nepal along with natural, cultural, historical and religious heritages of Nepal.Nepal is considered as a heaven country because of being enriched in natural heritages and its unexploited nature. Nature is the most beautiful attraction for all the people around the world which helps to refresh and arise positive vibes in every human being. Beautiful forests, high mountains, beautiful terrains and landscapes and mesmerizing rivers and gorges surely give heavenly pleasure and provide positive meaning of your life.
Jungle Safari in Chitwan is one of the rarest and wild journeys into Chitwan National Park allowing you to explore the wild jungle which houses many wild animals including rare and endangered one. Bird watching is another enjoyable activity to be done in Nepal and you can do this activity in most famous Shukla Panta National Park and Koshi Tappu Wildlife Reserve and considered as best bird watching spot of Nepal.
Taking about the Biodiversity in Nepal, it is a home of 185 mammals and 850 species of birds. National park and wildlife reserve of Nepal house many rare and endangered species including Snow Leopard, One horned Rhinoceros, Red Panda, Royal Bengal Tiger and many more. Bardiya National Park houses Royal Bengal Tiger in its setting and you can witness the one-horned rhinoceros at Chitwan National Park.

However, for all the adventure seekers and natural lovers all around the world, Visit Nepal 2020 is going to be organized in Nepal in 2020, welcoming all the visitors to take part in this program for exploring something new and different in your life as well as providing support as an individual to make this 2020 year as a fully tourism year in Nepal. You are offered with lots of opportunities and adventurous deeds to look deep inside in Nepal and obtain heavenly pleasure in this peaceful and diverse country.

You may visit this link too
https://www.welcomenepal.com/



Tuesday, July 23, 2019

fixed depart

 <?php if(have_rows('fixed_departure')){ ?>
              <div class="smooth-content" id="Join">
                <div class="module m-b-20">
                  <div class="heading m-b-20">
                    <h2>Join Departure</h2>
                  </div>
                    <div class="table-responsive m-b-20">
                      <div class="table-responsive">
                        <table class="table table-join table-striped">
                          <thead>
                            <tr>
                              <th>Start Date</th>
                              <th>End Date</th>
                              <th>space left</th>
                              <th>Price</th>
                              <th>Discount</th>
                              <th></th>
                            </tr>
                          </thead>
                          <tbody>
                   
                      <?php
$type = array( 'post_type_name');
    $bikashsoft_loop = new WP_Query( array(
    'post_type' => $type,
    'posts_per_page' => '-1',
    'suppress_filters' => true ));
    if($bikashsoft_loop->have_posts() ) : $bikashsoft_loop->the_post();
            ?>
           
     
              <tr>
              <?php
             if( have_rows('fixed_departure') ): the_row();
           
              $startdate = get_sub_field('start_date');
              $enddate = get_sub_field('end_date');
               $space = get_sub_field('status');
              $discountprice = get_sub_field('discount_price');
              $originalprice = get_sub_field('original_price');
              ?>
               
                              <td width="210px"><?php echo $startdate; ?></td>
                              <td width="200px"><?php echo $enddate; ?></td>
                              <td width="130px"><?php echo $space; ?></td>
                              <td width="180px"><?php echo $originalprice; ?> </td>
                              <td width="130px"><?php echo $discountprice; ?> </td>
                              <td> <a
                                  href="<?php echo esc_url( home_url( '/' ) ); ?>booking?trip_title=<?php echo urlencode(get_the_title($post->ID)); ?>&price=<?php echo $discountprice; ?>&date=<?php echo $startdate; ?>"
                                  class="btn btn--accent btn--small">Book Now</a></td>
                            <?php endif; ?>
                            </tr>
                            <?php endif; ?>
                         
                   
                          </tbody>
                        </table>
                      </div>
                    </div>
                </div>
           
              </div>
                <?php } ?>

Monday, July 22, 2019

To retrive post of posttype=tour and destination=nepal wise

<?php $args = array('post_type' => 'tour',

   'tax_query' => array(
       array(

        'taxonomy' => 'destination',
       
         'field'    => 'term_id',
       
         'terms'    => 9,
//here 9=nepal  ID of nepal
       
        ), ),

   'posts_per_page' => -1, 'orderby'=>'title','order'=>'DESC'); ?>
 
 
                      <?php
                            $query = new WP_Query($args);
                            if($query->have_posts()):
                           
                            while ($query->have_posts()):
                            $query->the_post();
                         
                      ?>

wordcounter.net

breezeadventure.com

https://wordcounter.net/

volume= yeti choti keyword search gareko
clicks=yeti choti srch garera clikc garek website
cps=click per search  clicks/vol
rr=return rate  vol/clicks 3 person  2 search 2 search 3 search 7/3
sf=search engine result page feature
movie 2018,carpet cleaning, perfect by ed shereem


kd helps to rank site in google
clicks help to

bibek vinda

ubersuggest
quora

for traffic volume>50

keyword frequency=> see competitor website  ctrl F  no ok keyword used in page

moz bar extention for chrome

how to find total number of post in wp

function wpb_total_posts() {
$total = wp_count_posts('post_type')->publish;
return $total;
}
add_shortcode('total_posts','wpb_total_posts');

how to remove category from slug

//function to remove slug

function trek_remove_cpt_slug( $post_link, $post, $leavename ) {

if ( 'activity' != $post->post_type&&
'hiking' != $post->post_type&&
'activity' != $post->post_type&&
'peak' != $post->post_type&&
'tour' != $post->post_type &&
'nepaltrekking' != $post->post_type ||
'publish' != $post->post_status ) {
return $post_link;
}

$post_link = str_replace( '/'. $post->post_type . '/', '/', $post_link );

return $post_link;
}
add_filter( 'post_type_link', 'trek_remove_cpt_slug', 10, 3 );

function trek_parse_request_trick( $query ) {

// Only noop the main query
if ( ! $query->is_main_query() )
return;

// Only noop our very specific rewrite rule match
if ( 2 != count( $query->query ) || ! isset( $query->query['page'] ) ) {
return;
}

// ‘name’ will be set if post permalinks are just post_name, otherwise the page rule will match
if ( ! empty( $query->query['name'] ) ) {
$query->set( 'post_type', array( 'post', 'page', 'nepaltrekking' ,'blog','tour','peak','hiking','activity' ) );
}
}
add_action( 'pre_get_posts', 'trek_parse_request_trick' );

Wednesday, July 17, 2019

Preety photo image popup custom plugins

jquery library needed for preety photo image popup

In footer

In upper part
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js" type="text/javascript"></script>

In lower paer
<script src="<?php echo get_template_directory_uri(); ?>/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>

<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("area[rel^='prettyPhoto']").prettyPhoto();

$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: true});
$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'fast',slideshow:10000, hideflash: true});

$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
changepicturecallback: function(){ initialize(); }
});

$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
changepicturecallback: function(){ _bsap.exec(); }
});
});
</script>


In header
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/css/prettyPhoto.css" type="text/css" media="screen" />

In css  upload   prettyPhoto.css

In js upload  jquery.prettyPhoto.js

In image folder upload  big folder, prettyFhoto folder and thumbnails folder thats all.

Featured Post

Make money online

https://www.wpbeginner.com/beginners-guide/make-money-online/?fbclid=IwAR0_9_5aHmbB4rDisaPevdnO4uAgo0N9heHgPu1TjerjurE5ilD2NyzeB2A

Popular Posts