Title: Using a WP Path in a Plugin
Last modified: August 19, 2016

---

# Using a WP Path in a Plugin

 *  [matrym](https://wordpress.org/support/users/matrym/)
 * (@matrym)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-wp-path-in-a-plugin/)
 * This is probably a basic question for most of you plugin programmers out there,
   but I’m a wordpress plugin noobie, and I can’t seem to Google my way out of this
   problem.
 * How do I use the wordpress path variable in a plugin? I’m looking for something
   like “stylesheet_directory” or “template_directory” but for the plugin. Whatever
   I try, it seems to end up being blank. Do I have to include a specific wordpress
   file at the top of the plugin or something?
 * Thanks in advance.

Viewing 1 replies (of 1 total)

 *  Thread Starter [matrym](https://wordpress.org/support/users/matrym/)
 * (@matrym)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-wp-path-in-a-plugin/#post-1124241)
 * For those who have the same question, use this:
 * get_bloginfo(‘wpurl’)
 * —
 * I figured it out from the tutorial here:
 * [http://www.devlounge.net/publik/Devlounge%20-%20How%20to%20Write%20a%20Wordpress%20Plugin.pdf](http://www.devlounge.net/publik/Devlounge%20-%20How%20to%20Write%20a%20Wordpress%20Plugin.pdf)

Viewing 1 replies (of 1 total)

The topic ‘Using a WP Path in a Plugin’ is closed to new replies.

 * 1 reply
 * 1 participant
 * Last reply from: [matrym](https://wordpress.org/support/users/matrym/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/using-a-wp-path-in-a-plugin/#post-1124241)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
