How to use jQuery plugin

If you don’t need js datepicker then no need to keep that anymore. Use your desired plugin. Make sure your theme based on bootstrap latest version.

jQuery Plugin Uncaught TypeError: jQuery(…).slider is not a function

You can try this code: add_action(“wp_enqueue_scripts”, “my_jquery_enqueue”, 11); function my_jquery_enqueue() { wp_deregister_script(‘jquery’); wp_register_script(‘jquery’, “//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”, false, null); wp_enqueue_script(‘jquery’); wp_enqueue_script(‘bootstrap-slider’, ‘CDN Url’, array(‘jquery’), false, null); } What I am doing is deregistering the WP jQuery script. Then I’ll add a new jQuery script with the CDN. I will enqueue this script and then enqueue your bootstrap slider … Read more

How to send json data to jquery

You could use one of these. It would give you json data. $data = json_encode( array(‘status’ => 200, ‘message’ => ‘success’); $result = wp_send_json_success( array( ‘photo_id’ => $photo_id_encode,’upload_msg’ => ‘Success’ ) );