Title: Determine WordPress path
Last modified: August 21, 2016

---

# Determine WordPress path

 *  [tmwagner](https://wordpress.org/support/users/tmwagner/)
 * (@tmwagner)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/determine-wordpress-path/)
 * This is really much harder then it should be… it seems.
 * I need to be able to point to the JQuery library within a template… without hardcoding
   the full path (which could change depending on how / where the WordPress instance
   is installed.
 * in my code is specify:
    `<script type="text/javascript" src="/wp-includes/js/
   jquery/jquery.js"></script>`
 * That works… unless WordPress in installed in a subdirectory (as I do for beta
   or staging).
 * There has to be a WordPress constant defined, or Function that returns the actual
   path… right???

Viewing 1 replies (of 1 total)

 *  Thread Starter [tmwagner](https://wordpress.org/support/users/tmwagner/)
 * (@tmwagner)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/determine-wordpress-path/#post-4769141)
 * As is usually the case, I found the answer myself…
 *  `<script type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-includes/
   js/jquery/jquery.js"></script>`

Viewing 1 replies (of 1 total)

The topic ‘Determine WordPress path’ is closed to new replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * 1 reply
 * 1 participant
 * Last reply from: [tmwagner](https://wordpress.org/support/users/tmwagner/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/determine-wordpress-path/#post-4769141)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
