How to use contact form core php with jquery ajax

HTML Form <!-- .isrequired.error{border-color:red;} .alert{background:#f3f3f3 none repeat scroll 0 0;border:1px solid;border-radius:3px;margin-bottom:10px;padding:10px;} .alert{display:none;} .alert.alert-danger{color:red;} .alert.alert-success{color:green;} --> File: frontend-ajax.js jQuery(document).ready(function() { jQuery(".submit_contact_btn").click(function() { //on focus jQuery("#contact_form .isrequired, #contact_form .isrequired").focus(function(){ jQuery(this).removeClass('error'); }); //on blur jQuery("#contact_form .isrequired, #contact_form .isrequired").blur(function() { if(jQuery(this).val().trim() == '') { jQuery(this).addClass('error'); } else { jQuery(this).removeClass('error'); } }); if(jQuery("#firstname").val().trim() == '' || jQuery("#lastname").val().trim() == '' || … Continue reading How to use contact form core php with jquery ajax

How to use custom metabox form and ajax

function.php add code <?php // Register Custom Post Type function custom_post_type_order_book() { $labels = array( 'name' => _x( 'Book Orders', 'Post Type General Name', 'text_domain' ), 'singular_name' => _x( 'Book Order', 'Post Type Singular Name', 'text_domain' ), 'menu_name' => __( 'Book Orders', 'text_domain' ), 'name_admin_bar' => __( 'Book Order', 'text_domain' ), 'archives' => __( 'Item … Continue reading How to use custom metabox form and ajax