I'm having trouble only adding scripts to single post pages. I need to both include and exclude certain scripts using is_single() but it doesn't work either way I try it.
I have the template tag on the top of custom single post templates...
<?php /* Template Name: Single Default */ ?>
And I use this to call a script from the functions.php
if (!is_admin()) {
if (is_single()) {
wp_register_script( 'jquery-scroll', get_bloginfo('stylesheet_directory').'/libs/jquery.jscrollpane.min.js' );
wp_enqueue_script( 'jquery-scroll' );
}
}