I want to include some jquery plugin files to my wordpress multisite install. My solution involved creating a specific template file for the pages that required these jquery plugins. Below is the line of code that includes my javascript file which I have placed at the last line of the template file.
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/plugins/jquery.tablesorter.min.js" ></script>
Is this solution a safe way to include files in specific templates? Any feedback would be very helpful!
srcresolves and you don't expose any back-end code to front-end.