There were problems with the script in the footer.
wp_deregister_script('jquery'); wp_enqueue_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js', array(), false, true);
Here's the definition of wp_enqueue_script:
wp_enqueue_script( $handle ,$src ,$deps ,$ver ,$in_footer );
As you can see, I set the value of $ in_footer to true. This does not work for me. Without this argument, it works fine and puts it in header.php. Why doesn't it work with $ in_footer?
source share