I need to include jquery in a single page template of my theme. But it looks like it doesn't want to.
I tried calling it with wp_enqueue_scripts() but i does nothing. Here is what is in functions.php
add_action( 'wp_enqueue_scripts', 'custom_theme_load_scripts' );
function custom_theme_load_scripts()
{
wp_enqueue_script( 'jquery' );
}
And what I'm trying to do in page-template.php
<?php custom_theme_load_scripts(); ?>
<script type="text/javascript">
//stuff using jquery here
</script>
Even calling it before the header doesn't work.
I don't want to load an external jquery file since wordpress already have one, but I'm banging my head against the wall as I have no idea why it doesn't work.
Any ideas ?