Much has been said on the subject of properly registering and enqueueing scripts in WordPress, so I hate to write yet another “including jQuery in WordPress the right way” post, so I’ll attempt to cover it from a different angle.
Because jQuery ships with WordPress, it’s really just a simple matter of making sure you call:
wp_enqueue_script( 'jquery' );
In your functions.php file.
But that’s really only half of it. After that, you have a matter of actually setting up your JavaScript source.
