Recently, building up a theme, I stumbled upon an error I could not easily solve.
I was setting up few variables, relative to the path of php and js files, and I realized that I had to use different gergo, for different things. For instance:
$styles_path = get_bloginfo('template_directory') . '/library/styles/';
$theme_path = TEMPLATEPATH . '/library/theme/';
I looked into this forum for an explanation about why sometimes I have to use TEMPLATEPATH and others get_bloginfo(‘template_directory’), but I could not find any posts on the topic.
Does anyone know the difference between the two?
Thanks in advance, ciao!
- The topic ‘TEMPLATEPATH vs get_bloginfo('template_directory')’ is closed to new replies.