Title: PHP templatepath
Last modified: August 20, 2016

---

# PHP templatepath

 *  [De Murph](https://wordpress.org/support/users/de-murph/)
 * (@de-murph)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/php-templatepath/)
 * Hi,
 * I guess this is a basic Apache/PHP question, but here goes anyway:
 * I’m trying to define a path to a file that is a few folders lower than my template
   directory (defined by TEMPLATEPATH).
 * So, let’s say templatepath returns:
    “dir1/dir2/mydomain.com/wordpress/wp-content/
   themes/”
 * From there on, I would like to go a few steps back and access a subdomain:
    “
   dir1/dir2/subdomain.mydomain.com/”
 * Any hints/tips are welcome.
 * Thank you!

The topic ‘PHP templatepath’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [De Murph](https://wordpress.org/support/users/de-murph/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/php-templatepath/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
