Scroll to top

Blog

I would like to discuss on whatever your requirement will be. Also I feel pleasure to be a part on that. So let’s just the conversation and finish this in efficient way.

How to use WP_Query with have_posts()?

How to use WP_Query with have_posts()? global $wp_query; $original_query = $wp_query; $wp_query = null; $wp_query = new WP_Query( $args ); if ( have_posts() ) : while ( have_posts() ) :

Read More »

How to get warning when exit browser without saving?

Get warning when exit browser without saving <script> jQuery(document).ready(function($){ $(window).unbind(‘beforeunload’); $(“input[type=’submit’]”).click(function(){      $(window).unbind(‘beforeunload’); }); $(“input”).on(“change paste keyup”, function() {   $(window).bind(‘beforeunload’, function(){ return ‘Are you sure you want to

Read More »

How to create table in database via wordpress plugin code?

 /* ++++++ Create a table +++++++*/ function create_admin_table(){global $wpdb; $create_cases_table_name = $wpdb->prefix . “jaspreetsingh”; $create_cases_table_query = “CREATE TABLE $create_cases_table_name (  ID mediumint(9) NOT NULL AUTO_INCREMENT,  name text NOT NULL,  phone

Read More »

How to use jquery on checkbox in worpdress ?

How to use jquery on checkbox in worpdress ? <html lang=”en”> <head> <meta charset=”utf-8″> <title>Check the Status of Checkboxes</title> <script src=”https://code.jquery.com/jquery-1.12.4.min.js”></script> <script type=”text/javascript”> $(document).ready(function(){ $(‘input[type=”checkbox”]’).click(function(){ if($(this).is(“:checked”)){ alert(“Checkbox is checked.”); }

Read More »