This function dosen't work any thoughts
function css()
{
// Register the style like this for a theme:
wp_register_style( 'custom-style', get_template_directory_uri() . '/css/style.css', array(), '20120208', 'all' );
// For either a plugin or a theme, you can then enqueue the style:
wp_enqueue_style( 'custom-style' );
}
add_action( 'wp_enqueue_scripts', 'css' );
?>
And it says that template is missing and if i use the clasic wp 2.6 compatible code
<link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
It works fine but wp codex says this is the wrong way can anyone explain this
How can I use the new feuaters of wp 3 and above form codex
Codex with best practices
Thank you in advance.