title: TypeError: 'undefined' is not an object (evaluating '$.fn') - Wordpress & shuffle.js
body: <p>I've spent hours trying to work this out.</p>
  
  <p>I'm trying to include <a href="http://vestride.github.io/Shuffle/" rel="nofollow">shuffle.js</a> in my Wordpress theme. It's dependant on jQuery 1.9+ &amp; Modernizr.</p>
  
  <p>I've added my scripts via <code>wp_enqueue_script</code> (see below)</p>
  
  <pre><code>wp_enqueue_script( 'jquery');
  wp_enqueue_script( 'modernizer', get_stylesheet_directory_uri() . '/js/modernizr.custom.js', array( 'jquery' ), '1', true );
  wp_enqueue_script( 'shuffle', get_stylesheet_directory_uri() . '/js/jquery.shuffle.js', array( 'modernizer' ), '1', true );
  wp_enqueue_script( 'my-shuffle', get_stylesheet_directory_uri() . '/js/my-shuffle.js', array( 'shuffle' ), '1', true );
  </code></pre>
  
  <p>I've made them dependant on each other and I'm loading them in at the footer.</p>
  
  <p>I've wrapped the 3 <code>.js</code> files in some jQuery noConflict Wrappers (see below)</p>
  
  <pre><code>(function($) {
      // Inside of this function, $() will work as an alias for jQuery()
      // and other libraries also using $ will not be accessible under this shortcut
  })(jQuery);
  </code></pre>
  
  <p>I'm still getting the errors:</p>
  
  <pre><code>Uncaught TypeError: Cannot read property 'fn' of undefined 
  jquery.shuffle.js?ver=1:1212
  
  Uncaught TypeError: Object [object Object] has no method 'shuffle' 
  my-shuffle.js?ver=1.6
  </code></pre>
  
  <p>Everything I read points to something not loading in order, to jQuery not loading but I don't think thats the case. Of course I could be wrong :)</p>
  
  <p>Does anyone have any ideas I can try?</p>
  
  <h2>[UPDATE]</h2>
  
  <p>I went and got the minified version of jQuery 1.11.1 and replaced it with the one bundled with Wordpress and it all fired into action!</p>
  
  <p>Only half a day lost :(</p>
  
  <h2>[UPDATE 2]</h2>
  
  <p>See Kevin's answer below. No need to change the bundled jQuery, there is an updated version of shuffle.js</p>