Title: Filtering the_excerpt doesn&#039;t
Last modified: August 20, 2016

---

# Filtering the_excerpt doesn't

 *  Resolved [theMikeD](https://wordpress.org/support/users/themiked/)
 * (@themiked)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/filtering-the_excerpt-doesnt/)
 * I have inserted this into my functions.php file as a test case as I am trying
   to modify the excerpt, and it appears to have no effect at all:
 *     ```
       function md_add_dateline( $content ) {
       	return "HELLO";
       }
       add_filter( 'the_excerpt ', 'md_add_dateline');
       ```
   
 * Is there something obvious I’m missing? The ultimate goal is to insert the post
   date as an old-school newspaper dateline, so that it looks like this:
 * May 7, 2012 – Lorum ipsum…
 * Any tips? It must be something obvious right?
 * ETA: I have a space after ‘the_excerpt ‘ which is the source of the problem. 
   Fixed.

The topic ‘Filtering the_excerpt doesn't’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [theMikeD](https://wordpress.org/support/users/themiked/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/filtering-the_excerpt-doesnt/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
