Log in
You shouldn't have to be an expert to be safe on a computer.

Home

Guides

Seminars

Tips and Tricks

Get File Path to WordPress Theme

Saturday, November 7th, 2009 (4 comments)

For some reason, the WordPress team removed the ability to simply get the file path to your theme folder. Here’s how to get it quickly:

$url = get_bloginfo("template_url");
$temp = explode("wp-content/themes/",$url);
$active_theme_name = $temp[1];	// The second value will be the theme name
$theme_path =get_theme_root()."/".$active_theme_name; 

When done, $theme_path will be the file path from the root of your current system to your active theme’s folder.

Seminars and Guides

Sick of Identity theft?

CLICK HERE

Want to be safe online?

CLICK HERE
Work With Jeremy

Inquire about

Seminars

Conferences

Consultation

Private Tutoring

Classes

Support the Geek

If you hate ads as much as I do, please consider supporting us by donating or browsing our recommended products


Recommended Products and Services
Quick Tips:
IDENTITY THEFT
PRIVACY
INTERNET SAFETY
PASSWORDS

Jsearch - Wordpress Multiple Category, Tag, and Term Search

The landing page for my Jsearch plugin. Use it to craft complex multi-term/tag/category searches on your Wordpress page.

[Click for full description]

Get File Path to Wordpress Theme

Here's a tip to get the file path to your current Wordpress theme.

[Click for full description]

Hack Wordpress to Make Postnames Always Editable

When using ordinary permalinks, you're blocked from editing the postname when doing posts and pages. This is senseless and must be stopped!

[Click for full description]

Manually Insert Page/Post Into Wordpress Via PHP

If you're a coder, you may at times need to manually add wordpress posts. Here's how.

[Click for full description]