the path is correct only if I use TEMPLATEPATH for $theme_path and get_bloginfo( 'template_directory' ) for $styles_path. This cos I need those variables to later load other files.
If I use get_stylesheet_directory() I obtain an incorrect path.
Now, the point here is to understand where TEMPLATEPATH, get_bloginfo( 'template_directory' ) (and get_stylesheet_directory() ) vary, since I need those variables to retrieve later files.
Later I need to use
include_once( $theme_path . 'theme-init.php' );
...and later again
print "<link rel='stylesheet/less' id='style-less-css' href='" . $styles_path . "style.less' type='text/css' media='screen, projection' />\n";<br />
So, TEMPLATEPATH works with include(), get_bloginfo() works later with print()... and I get confused.
If I use TEMPLATEPATH to retrieve all the variables, I get broken links for style.less and the less.js. If I use get_bloginfo('template_directory') or get_stylesheet_directory() for all of those, I get broken links for the stylesheet and the js file.
In details, TEMPLATEPAH returns
...while get_bloginfo('template_directory') returns
So, my question is, what's exactly the difference between TEMPLATEPATH and other ways to retrieve paths to files?