Title: Custom Path Function
Last modified: August 19, 2016

---

# Custom Path Function

 *  [luke.a.danielson](https://wordpress.org/support/users/lukeadanielson/)
 * (@lukeadanielson)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-path-function/)
 * Hello WordPressers. Quandry for you:
 * I’m looking to define a new function in functions.php so that I can call it everytime
   I need to call a specific path to a folder.
 * So essentially, instead of using ‘template_url’ and then adding text to the relevant
   folder, I would just call the function.
 * This:
 * <?php bloginfo (‘template_url’); ?>/library/media/images/example/sample.jpg
 * Would become something like:
 * <?php example_folder_path (); ?>/sample.jpg
 * Know what I mean? Any ideas? Thanks in advance!

Viewing 1 replies (of 1 total)

 *  Thread Starter [luke.a.danielson](https://wordpress.org/support/users/lukeadanielson/)
 * (@lukeadanielson)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/custom-path-function/#post-1850383)
 * Bump…

Viewing 1 replies (of 1 total)

The topic ‘Custom Path Function’ is closed to new replies.

## Tags

 * [custom function](https://wordpress.org/support/topic-tag/custom-function/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [luke.a.danielson](https://wordpress.org/support/users/lukeadanielson/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/custom-path-function/#post-1850383)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
