You should use wp_enqueue_script also when including the plugin script

4. heinäkuuta 2011 klo 18.11
Sijainti: Keskustelupalstat: Stack Exchange
Avainsanat: WordPress

I’d supplement saibot’s answer by saying that, instead of a raw <script>...</script> block, you should use wp_enqueue_script() also when including the plugin script:

<?php wp_enqueue_script("jquery-cookie", get_bloginfo('template_url').'/jquery.cookie.js', array(), '0'); ?>

Vastaa viestiin sen kontekstissa (Stack Exchange)