How to correctly load this jquery script through the file functions.php?

You don’t need to include jquery-ui and jquery-ui.min either of them is sufficient . Also jquery and jquery-ui are already included in WordPress. Try this wp_enqueue_script( ‘jquery’); wp_enqueue_script( ‘jquery-ui-core’); wp_enqueue_script( ‘qs.slider’, get_template_directory_uri() . ‘/layout/assets/js/qs.slider.js’, array(‘jquery’,’jquery-ui-core’), ”, true ); wp_enqueue_script( ‘qs.slider.init’, get_template_directory_uri() . ‘/layout/assets/js/qs.slider.init.js’, array(‘jquery’,’jquery-ui-core’), ”, true ); The above code will make sure jquery and … Read more

Conditions for admin get_current_screen action parent_file edit.php?post_type=page

You can use get_current_screen() to get details about the current screen. We want to hook on or after load-edit.php because get_current_screen() is defined just prior to this hook. By hooking into load-edit.php, we guarantee that this code will only fire on the edit.php page. Then we check the current screen to see if the post … Read more

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)