Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WordPress TEMPLATEPATH

Tags:

wordpress

Where in WordPress is TEMPLATEPATH initially set?

like image 921
Sergei Basharov Avatar asked Oct 05 '10 12:10

Sergei Basharov


People also ask

What is get_ template_ directory in WordPress?

get_template_directory(): string. Retrieves template directory path for the active theme.

How do I find the path of a directory in WordPress?

If you have WordPress bootstrap loaded you can use get_home_path() function to get path to the WordPress root directory.

How do I find my WordPress theme URL?

You need to find the one with /wp-content/themes in the URL. You may be able to find the Theme's URL or Theme Author's URL here which will lead you to the theme used by the website. Many WordPress sites use child themes to customize their websites.

What is theme URI WordPress?

Theme URI: The URL of a public web page where users can find more information about the theme. Author (*): The name of the individual or organization who developed the theme.


1 Answers

TEMPLATEPATH has been deprecated.

Use the following to include files:

 // Load entire ThemeSmith framework
 include get_template_directory() . '/my-extra-functions.php';
like image 149
Foxinni Avatar answered Oct 22 '22 11:10

Foxinni