Return to Snippet

Revision: 11767
at February 17, 2009 16:16 by selfmadepsyche

Initial Code
<?php wp_enqueue_script('jquery'); ?>  

<?php wp_enqueue_script('jquery'); ?>

<?php wp_enqueue_script('newscript','/wp-content/plugins/someplugin/js/newscript.js',array('jquery'),'1.0' ); ?>

Initial URL

Initial Description
Load jQuery into WordPress generated pages, the wp_enqueue_script function can be used in plugins as well. OR Add and load a new script that depends on jQuery (this will also cause it to load jQuery into the page as well).

Initial Title
Loading Javascript Libraries in Wordpress generated page

Initial Tags

Initial Language