The tales of Wordpress & jQuery - '$ is not a function', said the console...
Once upon a time, there was an OpenSource Blog-System around the Internetz. It seemed to be a very handsome one, almost everybody got along with it quite well - as long as you didn't have to look at what's inside of it. When I once did, it was disturbing: The whole thing was so messed up.
However, the reason why I'd had to look at Wordpress' code was the following one: My browser tried to convince me, that '$ is not a function'. Well, it certainly is, I thought. And I was kind of right, as well. The major problem is, when it comes to using other JavaScript Frameworks along with Wordpress, Wordpress already comes with a handy one itself: It is called 'Prototype'. And the $ function already is reserved for Prototype stuff.
Trial & Error combined with the magic power of Google did it. In case you're trying to run jQuery stuff along with Wordpress' Prototype stuff, don't use the $ function for your jQuery code anymore. Instead of the $, try to use jQuery. Sounds strange? How to do that? Well, it is quite simple, simple as that:
$().ready( function() {
$("#aawwwcmon").dosth();
});
simply becomes
jQuery().ready( function() {
jQuery("#aawwwcmon").dosth();
});
This did it for me, and it hopefully will do for you as well!