WordPress TEMPLATEPATH olatechproFebruary 13, 20233 Views Where in WordPress is TEMPLATEPATH initially set? Post Views: 3 Related postsGet rid of this Strict Standards warningWooCommerce: get_current_screen not working with multi languageCan’t login on WordPressForce HTTPS using .htaccess – stuck in redirect loopWordPress: Ajax not working to insert, query and result dataHow Can I pass an image file to wp_handle_upload?
TEMPLATEPATH has been deprecated. Use the following to include files: // Load entire ThemeSmith framework include get_template_directory() . '/my-extra-functions.php'; Log in to Reply
It points to the template of your wordpress that is active. <?php echo TEMPLATEPATH; ?> This will give you the actual path. Incase you are using a child theme, then this points to the childtheme. This is really handy because… bloginfo('template_url') This doesn’t point to the child theme and creates problem for new developers using child theme. Log in to Reply
TEMPLATEPATH has been deprecated.
Use the following to include files:
It points to the template of your wordpress that is active.
This will give you the actual path.
Incase you are using a child theme, then this points to the childtheme. This is really handy because…
This doesn’t point to the child theme and creates problem for new developers using child theme.