Title: Custom function not working
Last modified: August 18, 2016

---

# Custom function not working

 *  Resolved [black-dog](https://wordpress.org/support/users/black-dog/)
 * (@black-dog)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/custom-function-not-working/)
 * Hi.
 * I want to change the look of `the_time()` for my posts, and has a funtion that
   will do that, but I can’t seem to get it working.
 * I have the function defined at the top of index.php (since I can’t seem to include
   a custom-functions.php file), and it works when used with a test variable outside
   the loop, but when trying to add it inside the loop, like so: `Spacing(the_time('
   M j Y'))`, it doesn’t work. I’m using WP 2.0.
 * Appreciate any input to this problem.

Viewing 1 replies (of 1 total)

 *  Thread Starter [black-dog](https://wordpress.org/support/users/black-dog/)
 * (@black-dog)
 * [20 years, 3 months ago](https://wordpress.org/support/topic/custom-function-not-working/#post-304802)
 * Oh, never mind, it seems to be working now… I’ll get back with more info if someone
   wants it.

Viewing 1 replies (of 1 total)

The topic ‘Custom function not working’ is closed to new replies.

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [black-dog](https://wordpress.org/support/users/black-dog/)
 * Last activity: [20 years, 3 months ago](https://wordpress.org/support/topic/custom-function-not-working/#post-304802)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
