Resolve jQuery error “$ is not a function” in Wordpress

When you add your own jQuery code to Wordpress, you might encounter the following java error when debugging using Firebug:
$ is not a function

Following is a simple fix for this error.