@tanktery
template_directory
is the URL of the active theme’s directory. Before version 2.6 of WordPress it was a local path.
TEMPLATEPATH
is 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!
Related Posts:
- How important is it to enqueue a theme’s stylesheet?
- How do I remove a pre-existing customizer setting?
- Can a theme be built in React?
- Why I can’t add a CSS style in this WordPress theme?
- Use __($str) and _e($str) to translate strings with HTML
- Is there a way to set the order of wp_footer hooked functions?
- Why is styling comments so complex?
- Add a notice to users upon first login to the admin area
- How to deploy a new theme/theme options from staging to production site
- How do you enqueue script tags for ReactDOM in WordPress’ functions.php?
- How do I get gallery thumbnail URL and change the default thumbnail size?
- Can you filter posts by meta key with the getEntitityRecords selector?
- Context aware widgets. My work in progress
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- Upgrading a custom theme through the Dashboard
- how to make a child theme replace functions in different php files that are loaded throu require_once
- Remove “a href” from wp_list_comments()
- Get list of months with posts
- How WordPress converts URL to $query_string
- How to list all images in uploads directory except those that are attached to any post
- Advanced theme training?
- Unhook action from child theme
- Does any theme support child theme?
- 2 differen’t menus and it’s using same items in both
- “add_theme_support” for custom footer color?
- Media Uploader in custom path
- Highlight “Show all” item in wp_list_categories
- Attach media to multiple posts
- Internal error 500 accessing Theme > Customize
- Save Widget State Between Theme Swaps?
- Theme Development: Starter Content after hook
- Custom page template with custom fields
- Underscore Based Theme File Permissions in Git
- How do I include pre-installed images in a theme?
- Getting php_network_getaddress error : No such host is known?
- HTML added to editor when deleting shortcodes in Chrome browser
- Trackbacks not displaying
- Combining CSS files into a single cached one
- How to set a page as homepage in stead of the newspages?
- Widget Option is Missing
- Get the amount of posts on a given page
- How do I use a color from theme options?
- If you were to start using a WordPress framework today, which one would you use? [closed]
- Register sidebar ‘before’ and ‘after’ html as div rather than li tags
- Is it possible to have a theme that uses only one single page?
- Second menu has the first menu ID
- How to include a file only on dashboard widgets page?
- JQuery undefined and Stylesheet loads in bottom along with js files
- WP_Query $gallerypage->the_post() giving Undefined offset: 0
- How do I conditionally defer scripts based on the page name?
- How to place POST TITLE any location inside the posts page
- Do I need to re-import Susy to work with it in a child theme? [closed]
- Valid SQL query not returning results
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Trouble in creating a custom template on twentyeleven theme
- language support in a custom urdu theme
- If I remove Category base from my URLs, how difficult will rollback be?
- Understrap-child conditional js script
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- In wordpress customizer div still showing even if I hid it with javascript
- Programatically Created Menu not Editable in Dashboard
- Embedding CodePen Calorie Script – jquery error
- How to make updatable custom WordPress theme?
- How can I access variables from theme in child theme? [closed]
- How to handle theme activation errors?
- Is it possible to echo a woocommerce prouct attribute discription?
- change background image on scroll
- Duplicate child theme incl. design changes
- Why .widget-area is outside of .site-content in Underscores starter theme?
- Using wp_add_inline_style Inside a Template File
- How can I use a different template file for the blog index’s paginated pages?
- How to customize the colors within a stylesheet using a WordPress setting
- WordPress Twenty-Fourteen: How to Remove Home Page Header Image from Other Pages
- On wordpress, how do i require specific dimensions from user uploads only
- how to create export / import theme options in wordpress without plugin
- Display current taxonomy slug in a post
- How to create multiple customizer controls in one control
- Modify comments_popup_link output
- How can I display and excerpt of all pages with a meta_key and meta_value on index.php?
- Create image with imagepng() (fails at header)
- Can you create a custom page with content in the center already defined?
- Dynamic meta description
- How to Remove Sidebar when get_sidebar() is not get called in page?
- RSS feed url showing page not found. How to solve it?
- Enable WP to accept standard jQuery code embeding between the tags [duplicate]
- Retina ready for uploaded images which are cropped
- Pagination issue with Single.php
- Search Results not displaying for multiple word search
- Allow users to edit home page from WordPress (home.php problems)
- php file child theme directory not overriding parent theme php file [duplicate]
- WordPress does not know the parametrs i sent to admin post
- Display Page featured Image as well as Posts featured Image
- Creating completely new WordPress site from old WP contents
- Custom Single Page Portfolio Theme [closed]
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- Theme template file for a specific custom taxonomy
- How do I work with responsive images in WordPress? (img srcset/sizes)
- How can I use pre declared blocks in a php file?
- jQuery Snippet Not Working on WordPress Site [closed]