Posts

Showing posts from December, 2015

Wi-Tribe / Qubee Extra GB (Bundle offer)

Wi-Tribe / Qubee Bundle GB Offers (When you cross GB limit) In Wi-Tribe when you exceed your GB limit , they charge you Rs. 0.10 Per MB (Rs. 102 Per GB) In Qubee when you exceed your GB limit, they don't charge you extra and internet works on reduced speed. that usage is free but slow. Wi-tribe and Qubee both giving their bundle GB offer for their customers. -- Wi-Tribe Rs. 75 = 2GB , Rs. 150 = 5GB. -- Qubee Rs.100 = 3GB , Rs. 200 = 7GB or Rs. 500 = 18GB  (Customer will not be charged even if he wont buy bundle in QUBEE as packages are AOL(Always OnLine) means no extra charge on usage even exceed limit, but speed will be reduced)

New features of Laravel 5 PHP framework

Image
Laravel is one of the highly used and appreciated coding frameworks by the PHP developers. Developers prefer Laravel over to other frameworks because of the performance, features, scalability it offers. Here we will discuss some exceptional features of Laravel that makes it the PHP Developer’s first choice. Laravel 5 was launched in November 2014. As expected, there were lots of functional changes in the Laravel 5. It was backed with 22 new features for developers. The company has upgraded the successful version of Laravel 5 in the February this year. The latest version of Laravel 5.1 is available now. Laravel 5.0.1 has restructured framework architecture in the latest release. The company has prominently simplified the Method injection. New route-caching feature has been added to Artisan. Let’s have a look over some of the most important features of Laravel 5.   New directory structure   It is a structural change that you might notice first. Laravel 5.0.1 impl

Load more posts on click using jQuery

DEMO:  https://jsfiddle.net/gmkhussain/hd4603gj/ HTML========= <h2>Load More Posts</h2> <div id="allpost"> <div class="post-box" id="hari1">              <div class="post-img col-sm-3">                             <img width="155" height="136" src="http://localhost/projects/summer-blog/wp-content/uploads/2015/12/image1-1.jpg" class="attachment-full size-full wp-post-image" alt="image1">                                                        </div>        <div class="post-content col-sm-9">             <h3>Fifth Blog Heading Goes Here</h3>                                  Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque natibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec pellentesque eu pretium uis

remove span elements from Contact form 7 but keeping inside elements

//remove span elements from Contact form 7 but keeping inside elements var cf7input = $( " .wpcf7-form-control " );   if ( cf7input .parent().is( "span" ) ) {     cf7input . unwrap ();   } else {     cf7input .wrap( "<span></span>" );   jQuery('.form-group br '). remove ();   //On focus add class for animation (optional) jQuery('.form-control').focusout(function(){  var text_value=jQuery(this).val();      if(text_value!='')        { //alert(1); jQuery(this).addClass("wariya");         }else{jQuery(this).removeClass("wariya");} }); DEMO:  https://jsfiddle.net/qjw5nr7r/

How to display post featured image and content call by Post ID WordPress

<?php $post = get_post( 159 ); setup_postdata($post);?> <p><?php  the_content();?></p> <?php the_post_thumbnail(); ?>

how to create and display categories for post type in WordPress

/******services_posttype***********/ function args_ourwork_posttype(){    $args_services = array(    'labels'=> array( 'name'=>'ourwork Tab',        'singular_name'=> 'ourwork',        'menu_name'=>'ourwork',        'name_admin_bar'=> 'ourwork',        'all_items' =>'View all ourwork',        'add_new'=> 'Add New ourwork' ),    'description' =>"This post type is for ourwork",    'public' => true,    'exclude_from_search'=>false,    'publicly_queryable'=> true,    'show_ui' => true,    'show_in_menu'=> true,    'show_in_admin_bar'=> true,    'menu_position'=>6,    'capability_type'=> 'page',    'menu_icon' => get_stylesheet_directory_uri().'/images/dash-logos.png',    'supports'=> array( 'title', 'editor

Automatic Deployment Bitbucket (git) to live site

Image
Hostgator has git and svn preinstalled. This enables us to automate deployment! The end result is when you push a commit to bitbucket, the changes are automatically deployed your site… automatically. For this tutorial I will assume you have a  Bitbucket  account Your git repo already uploaded to Bitbucket sourcetree  git client managing your local git repo root access to your hostgator SSH access My bitbucket account is  bruceoutdoors , and I’ll be using a private git repo  deploy-test . Set up SSH in hostgator After you have logged in to the cpanel, use your legacy file manager and set it to home directory and show hidden files. Create a new  .ssh  folder if it has not existed. Download  PuTTy  if haven’t got it. NOTE:  To paste contents to PuTTy, right click on the terminal. Enter something like: Hostname:  gator1111.hostgator.com:1111 Port:  2222 Click “Open”. Login into hostgator with your username and password run: cd .ssh ssh-keygen We won’t be

how to display woocommerce recent products on wordpress custom page

<section id="recentProductArea"> <div class="container"> <h1>Recently Added</h1> <div class="products-area"> <?php $args = array( 'post_type' => 'product', 'stock' => 1, 'posts_per_page' => 4, 'orderby' =>'date','order' => 'DESC' ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); global $product; ?> <div class="product-box col-sm-3"> <a id="id-<?php the_id(); ?>" href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php if (has_post_thumbnail( $loop->post->ID )) echo get_the_post_thumbnail($loop->post->ID, 'shop_catalog'); else echo '<img src="'.woocommerce_placeholder_img_s