Title: template path question in php code
Last modified: August 18, 2016

---

# template path question in php code

 *  [lindalu2](https://wordpress.org/support/users/lindalu2/)
 * (@lindalu2)
 * [21 years ago](https://wordpress.org/support/topic/template-path-question-in-php-code/)
 * Dumb question — how do I write the template path if WP is installed in the root
   directory of [http://www.blabble.org](http://www.blabble.org)? Here is the code:
 * ` <?php else : ?>`
 *  <h2 class="center">Not found.</h2>
    <?php include (TEMPLATEPATH . '/searchform.
   php'); ?>
 *  <?php endif; ?>
 * Also, once I include the template path am I supposed to remove the “.” and spaces
   and run the entire address together with the /searchform.php’ thus making it 
   something like (‘[http://www.blabble.org/wp-content/themes/relaxation/searchform.php&#8217](http://www.blabble.org/wp-content/themes/relaxation/searchform.php&#8217);)?

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [21 years ago](https://wordpress.org/support/topic/template-path-question-in-php-code/#post-219196)
 * See the other thread:
    [http://wordpress.org/support/topic/36339#post-205575](http://wordpress.org/support/topic/36339#post-205575)

Viewing 1 replies (of 1 total)

The topic ‘template path question in php code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [21 years ago](https://wordpress.org/support/topic/template-path-question-in-php-code/#post-219196)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
