Latest Videos

Disable all update in wordpress

remove_action('load-update-core.php', 'wp_update_plugins'); add_filter('pre_site_transient_update_plugins', '__return_null'); function remove_core_updates() { global $wp_version; return(object) array('last_checked' => time(), 'version_checked' => $wp_version,); } add_filter('pre_site_transient_update_core', 'remove_core_updates'); add_filter('pre_site_transient_update_plugins', 'remove_core_updates'); add_f ...

Read more

WordPress subpages next and previous with count down

$pageid = get_the_ID(); $subpages = get_pages(array( 'post_type' => 'page', 'sort_column' => 'menu_order', 'order' => 'DESC', 'posts_per_page' => -1, 'child_of' => $post->post_parent, 'offset' >=0 )); $foundon = false; if(!empty($subpages) && !is_wp_error($subpages)) foreach($subpages as $index=>$p){ if($p->ID == $pageid){ $foundon = $index + 1; } } ?> Pag. ...

Read more

WordPress menu order change by pages order bootstrap menu

This code need to write in function.php /* Elk Menu */ function elk_wp_menus( $args = array() ) { $defaults = array('sort_column' => 'menu_order', 'menu_class' => 'menu', 'echo' => true, 'link_before' => '', 'link_after' => ''); $args = wp_parse_args( $args, $defaults ); /** * Filter the arguments used to generate a page-based menu. * * @since 2.7.0 * * @see wp_page_menu() * * @param array $args An array of ...

Read more

Web site Page speed depend on

Page speed depend on Quality of your host. Physical size of the site, generally due to images. Number and quality of the plugins used. Number of external scripts running on the site and to implement those. We can do: 1. Reduce Render render-blocking If we want to reduce render-blocking we can follow this tutorial // add async and defer to javascripts function nsbd_defer_javascripts ( $url ) { if ( FALSE === ...

Read more

How to make wordpress ajax form submite

<?php $url = admin_url('admin-ajax.php'); ?> <script> jQuery(document).ready(function(){ jQuery("#submit").click(function(){ var name = jQuery("#dname").val(); var email = jQuery("#email").val(); var phone = jQuery("#phone").val(); var message = jQuery("#message").val(); $("#form").find('#submit').val('Working'); //var info = 'dname:' + name + '&email:' + email + '&phone:' + phone + ' ...

Read more

Disable Plugin Update Notifications in wordpress

Insert the following code to the functions.php file of your active theme. It will remove the update notifications of all the installed plugins. remove_action('load-update-core.php','wp_update_plugins'); add_filter('pre_site_transient_update_plugins','__return_null'); To Disable all the Notifications : Insert the following code the functions.php file of your active theme. This code disables all the updates n ...

Read more

WordPress chield Pages pagination with counter in parent page

<div class="container"> <?php $ids = array(); $pages = get_pages("child_of=".$post->ID); if ($pages) { foreach ($pages as $page) { $ids[] = $page->ID; } } $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( "paged" => $paged, "post__in" => $ids, "posts_per_page" =>1, "post_type" => "page" ); query_posts($args); $count = count($pages); echo $paged;  echo ...

Read more

Making the Jump From a Startup to an Enterprise

As a tech professional, adapting to change is a core part of your career, but it’s never easy. In my 20 years in the technology industry, I’ve worked in a variety of different cultures, and one of the hardest transitions for tech professionals to make is moving from a startup to an enterprise. Contrary to moving from startup to startup, or enterprise to enterprise, moving from a startup to a more establishe ...

Read more

© 2011 Powered By Wordpress, NSBD Theme By NSBD Team

Scroll to top