Thursday, June 27, 2019

how to count total no of post in certain post type(trek)

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


In html
<?php echo do_shortcode('[total_posts]'); ?>

Thursday, June 20, 2019

To show the avater image of the author?

 <?php
                            $user = wp_get_current_user();
                           
                            if ( $user ) :
                                ?>
                        <figure class="c-media__figure">
                              <img src="<?php echo esc_url( get_avatar_url( $user->ID ) ); ?>" />
                           
                        </figure>
                        <?php endif; ?>

Tuesday, June 18, 2019

How to count total no of post in dashboard?

echo get_usernumposts();

How to display editor image from custom field with image property as id?

<?php

$image = get_field('editor_image');
$size = 'full'; // (thumbnail, medium, large, full or custom size)

if( $image ) {

$image=wp_get_attachment_image( $image, $size );

}

?>
<?php echo $image; ?>

How to display author name and post

//to display author name
<?php
                     
                                global $post;
                                $author_id=$post->post_author;
                                ?>
                           
                       <strong><?php the_author_meta( 'display_name', $author_id );?> </strong>

<?php
                  global $post;
                          $author_id=$post->post_author;
                      ?>

//to display author post
             <?php
             $args = array(
                    'author'        =>  $author_id,
                    'orderby'       =>  'post_date',
                    'order'         =>  'ASC',
                    'posts_per_page' => -1
                    );
                   
                      $query = new WP_Query($args);
                      if($query->have_posts()):
                      while ($query->have_posts()):
                      $query->the_post();
                    ?>
           <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?> </a></li>
           <?php endwhile; endif; wp_reset_query(); ?>

//to display author media link
<?php
$twitter = get_the_author_meta( 'twitter', $post->post_author );
$facebook = get_the_author_meta( 'facebook', $post->post_author );
echo '<a href="https://twitter.com/' . $twitter .'" rel="nofollow" target="_blank">Twitter</a> |
<a href="'. $facebook .'" rel="nofollow" target="_blank">Facebook</a>';
?>

How to Display Author’s Twitter and Facebook on the Profile Page

https://www.wpbeginner.com/wp-tutorials/how-to-display-authors-twitter-and-facebook-on-the-profile-page/

Wednesday, June 12, 2019

How to Create Ad unit and Place Google Adsense ads on Blog [Hindi]

https://makeyourmoneyworkingforyou.com/online-business/blogging/8-seo-basic-techniques/?fbclid=IwAR2sqo2COWd2ZUfxHVDjq-885wu2_J_bVTIqHlAsB_YZVl4upRsIrHWNyPM

learn Seo
https://mangools.com/blog/learn-seo/

https://support.google.com/blogger/forum/AAAAY7oIW-wZhFMJwmMlPE/?hl=en&gpf=%23!topic%2Fblogger%2FZhFMJwmMlPE%3Bcontext-place%3Dtopicsearchin%2Fblogger%2Fauthorid%243AAPn2wQebtzxUvZitrifMtu1wT-lhlmyUGvve_M6FTPWO1Eo0m4uZv74koFkkhpjnoyAQoeXhp8hO%257Csort%3Adate%257Cspell%3Afalse
adsense say my classic template is not suitable for adsense can anyone tell me which template is suitable for placing ads?

https://www.youtube.com/watch?v=pShrJ7YlhhA
https://blogger.googleblog.com/

1Adsense Ads Not Showing in Blogger How 2to Create Ad unit and Place Google Adsense 

3How to Approve Adsense account for website and blogger 2018 [Hindi]ads on Blog [Hindi]

4How To Download And Install Blogger Templates | Customize Blogger Theme | Edit 


5.http://bestbloggertips.com/google-adsense-highest-paying-keywords-2013/



Tuesday, June 11, 2019

Visit Nepal 2020



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.com 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:

1.     Trekking and Mountaineering
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
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
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.
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.

Sunday, June 9, 2019



About  Nepal?

Nepal is a landlocked country in South Asia sharing its borders with India on east, west, south, and China on the North. It has population of 26.4 million . It is 48th Largent country in the world with respect to population. It has diverse geography with mountains in the north, hilly area, and  terai  region. Kathmandu is the captital city of this country. Founder of Buddhism, Lord Buddha was also born in Lumbini, Kapilbastu, Nepal. The Constitution of Nepal adopted in 2015, establishes Nepal as a federal secular parliamentary republic divided int0 seven provinces. The total area of Nepal is 147.181 sq.km. Only the population of Kathamdu is about 1 million which is reknown as the city of temple. Nepal is best for trekking, tour, expedition, river rafting, mountain flight, bungi –jumping, bird watching  .The nation language of Nepal is Nepali, but there are different other languages found spoken.

Nepal has maily four season named spring , winter, summer, autumn . The currency of Nepal is Nepali Rupees. Nepal is rich in culture and tradition . It has different type of festival celebrated all aroud the year. For ex : Bhoto Jatra , Bisket Jatra, Gai Jatra .It is reknown for its natural beauty. It has different type of ethnic groups speaking different language in different parts of country. 

Nepal (नेपाल) has its flag red with a blue border around the unique shape  of two overlapping right triangles. The smaller, upper triangle has a white stylized moon and the larger and lower triangle displays a white 12-pointed sun. The color red represents the rhododendron (the National flower of Nepal) and the color red is sign of victory and bravery. The blue border signifies peace and harmony; the two right triangles are a combination of two single pennons (pennants) that originally symbolized the Himalaya Mountains.  The moon represents the serenity of the Nepalese people and the shade and cool weather in the Himalayas, while the sun depicts the heat and higher temperatures of the lower parts of Nepal. The moon and the sun are also said to express the strong belief that the Nepal will be there in the earth as long as Sun and Moon are in the sky.




What does cpc meant for seo?

How Is CPC Calculated?

When it comes down to calculating the CPC it is usually done by the dividing up of the total cost of clicks by the total number of clicks. In other words, your average CPC is based on your actual cost-per-click, which is the actual amount that you are charged for a click on your ad. One thing to always keep in mind is that your average CPC may just so happen to be different from your maximum cost-per-click, which is the highest amount that you are meant to pay for a click.

What does keyword volume meant in seo

By "grouping keyword volumes," we mean that different keywords that are slightly different (but generally convey the same meaning) are given the same volume, which represents the combined volume of every variation. For example, if (hypothetically) [SEO] is searched 21,000 times per month in the UK, and [Search Engine Optimisation] is searched 12,100 times per month, once these keywords are combined, each will be reported as receiving the total of the two—33,100 searches per month.\
On top of this, in the last few weeks Google have also been reducing access to keyword planner data for some accounts. Earlier this month, it was announced that Keyword Planner data will be given only in very broad buckets for advertisers with "lower monthly spend" (although some ways around this have been found). This is a separate change from the volume grouping, which is the main focus of this article.

What is the Keyword SEO Difficulty?

Keyword difficulty (also known as keyword competition) is one of the most important metrics you should consider when doing keyword research. The higher is the keyword difficulty, the harder it is to rank on the 1st SERP due to a high competition of the ranking websites.
https://mangools.com/blog/what-is-keyword-seo-difficulty/

Thursday, June 6, 2019

Copy checker, free hosting, Micro Niche Blog Case Study | Earn $5000/Month By Micro Blogging


https://www.merokalam.com/why-must-visit-nepal/
Visit Nepal 2020
Where Is Nepal?
WHY MUST VISIT NEPAL IN 2020
Best 5 Trekking Route in Nepal
 15 Best Natural Beauty of Nepal
 Bungy Jump in Nepal: Location, Price, and Facility
 Top 50 Amazing Facts About Nepal
 10 Best Sector To Invest in Nepal [ Nepal Investment Guide ]
 Ghale Gaun: Best place to Home Stay in Nepal
 Send Money to Nepal With Best Rates
 Best 10 travel agencies in nepal
 Culture of Nepal
 Airline In nepal
 Mount Everest  Top 8 wonder is in nepal

seo analytics

seorana.com
media.net

event blogging
https://www.blogdada.com/make-money-from-event-blogging/


seo blog
https://www.alltechbuzz.net/advanced-seo-optimized-atb-blogger-template/

https://www.abijita.com/earn-money-online-google-adsense-nepal-free/

Wednesday, June 5, 2019

How to track no of visitor in a website?

In HTML
This website has been visited <?php visitor_counter();?> times.


function visitor_counter(){
global $wpdb;
$table=$wpdb->prefix.'vcounter';
$charset_collate = $wpdb->get_charset_collate();

$sql = "CREATE TABLE $table (
  ipaddress varchar(100) UNIQUE NOT NULL
) $charset_collate;";

require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
dbDelta($sql);
$ipaddress=$_SERVER['REMOTE_ADDR'];
$value=array('ipaddress' => $ipaddress );
$wpdb->insert($table, $value);
$count="select count(ipaddress) from ".$table;
$c= $wpdb->get_var($count);
echo number_format($c+850780);
}

Tuesday, June 4, 2019

Featured Post

Make money online

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

Popular Posts