30
Mar
2013

WordPress Theme Directory URI

Posted in: WordPress Comments Off

wordpress
WordPress theme directory URI is:

<?php echo get_template_directory_uri(); ?>

This code can be used when developing WordPress themes / Plugins. Like if you want to display any image in your theme, you can use code something like below:

<img src="<?php echo get_template_directory_uri(); ?>/images/imagename.png" />

About the Author

Name: Ravi Shekhar
I love learning and sharing web stuffs.

Share this post

Twitter Facebook Google Buzz Digg StumbleUpon Delicious Technorati
Both comments and pings are currently closed.

Comments are closed.