title: Bullet proof way to avoid jquery conflicts on wordpress plugins
body: <p>I have been developing wordpress plugins for a while now and i always seem to get the following issues with all my plugins Jquery conflicts issues.</p>
  
  <p>I have tried so many different ways to avoid these but i always get users contacting me saying when they have installed one off my plugins it has stopped another plugin from working aahhhhh.</p>
  
  <p>I really want to get this sorted because i understand how frustrating this can be for people.</p>
  
  <p>I always set and option or include wordpresses jquery, below is just an example not working code.</p>
  
  <pre><code>add_action( 'init', array( $this, 'include_jquery' ) );
  
  function include_jquery(){
  
                     wp_deregister_script('jquery');
                     wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"), false, '1.7.1');
                     wp_enqueue_script('jquery');
  
              }
  </code></pre>
  
  <p>Ok so after issues with this i now have a select option in the plugin admin to toggle yes or no to include jquery or not i know it is automatically installed but some users remove this, this works for some people but not all.</p>
  
  <p>if you include the wordpress jquery i know you have to run your jquery with the following.</p>
  
  <pre><code>jQuery(document).ready(function ($) {
  </code></pre>
  
  <p>jQuery instead of the dollar sign $</p>
  
  <p>i understand and have used jquery no conflict and tried and tested some if not all off these 
  <a href="http://api.jquery.com/jQuery.noConflict/" rel="noreferrer">http://api.jquery.com/jQuery.noConflict/</a></p>
  
  <pre><code>$.noConflict();
    jQuery(document).ready(function($) {
      // Code that uses jQuery's $ can follow here.
    });
  </code></pre>
  
  <p>This as with the others works for some but not all users with conflicts arising still with certain users.</p>
  
  <p>I am hoping that from this post some of us wordpress plugin developers could help out and post a bullet proof way to use wordpress and jquery within our plugins without getting conflict issues.</p>
  
  <p>Thanks</p>