Posts

Showing posts from 2015

How to.....?

How to display category hierarchy in WordPress <ul>     <?php $categoryterm = get_terms("taxonomy-name", array("orderby" => "slug", "parent" => 0)); ?>     <?php foreach($categoryterm as $key => $cateterm) : ?>         <li>             <?php echo $cateterm->name; ?>             <?php $childterms = get_terms("taxonomy-name", array("orderby" => "slug", "parent" => $cateterm->term_id)); ?>             <?php if($childterms) : ?>                 <ul>                     <?php foreach($childterms as $key => $childterm) : ?>                         <li><?php echo $childterm->name; ?></li>    ...

Get nearest place location using latitude and longitude

Using latitude and longitude get nearest place location name like school, hospital, restaurant, atm, bank, airport. Here link is supported places provided by google map. Place Types | Google Places API | Google Developers Step 1: Include the js file. <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> ----------------------------------------- Step 2: Add the below script. <script type="text/javascript">         var map;                 var pyrmont = new google.maps.LatLng(22.299695, 70.799324 );         function initialize() {             map = new google.maps.Map(document.getElementById('mapdetail'), {                 mapTypeId: google.maps.MapTyp...

Wordpress developing website useful plugin

Image
In real world to develop the easiest way build your website, so you can develop in WordPerss freamwork. 1) Yoast WordPress SEO Plugin Wordpress Seo plugin is good platform to niche seo and better ranking provide in google search page. This plugin allows to own meta,  keyword and title. Website seo most powerful file is htaccess and robots.txt file easy can manage using this plugin. 2)  WP Pagenavi Wp Pagenavi is provides pagination to your blog page, it's easy to use and customize paging css, just copy the  pagenavi-css.css file and add own theme directory. Using shortcode <?php wp_pagenavi(); ?> view pagination your blog page, manage page per view in admin setting -> Reading option set the post per page. 3) WP show stats Wp show stats it's really user friendly chart view Wordpress plugin, Just install and view in admin left menu panel ' WP Show Stats'. Wp show stats view all stats like Pages, Post, Custom...