I am trying to code in more consistent manner and would like to know what is the difference between WP: template_directory vs TEMPLATEPATH.

1 Answer
1

@tanktery

template_directory is the URL of the active theme’s directory. Before version 2.6 of WordPress it was a local path.

TEMPLATEPATHis also the URL of the active theme’s directory.

Before version 2.6 TEMPLATEPATH was used but now it is recommended to use <?php bloginfo('template_directory'); ?>.

Hope this helps!

Leave a Reply

Your email address will not be published. Required fields are marked *