Title: Content Filter causing double posts
Last modified: August 20, 2016

---

# Content Filter causing double posts

 *  Resolved [zeaks](https://wordpress.org/support/users/zeaks/)
 * (@zeaks)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/content-filter-causing-double-posts/)
 * For some reason this is causing my post content to show twice, as well as the“
   testing content filter” part.
 * It works fine on another site, I’m using it to display adsense at the bottom 
   of each post, but I can’t get it to work in my 2011 child theme.
 * Anyone see anything wrong with it?
 *     ```
       /* Filter the_content() */
       add_filter( 'the_content', 'my_content_filter' );
       	function my_content_filter( $content ) {
       	   if ( is_single() || is_page() ) {
       		  $content .= ' ***TESTING CONTENT FILTER******* ';
       	   }
       	   return $content;
       	}
       ```
   
 * EDIT: nvm, was a bad copy and past in my single page template >.<

The topic ‘Content Filter causing double posts’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 0 replies
 * 1 participant
 * Last reply from: [zeaks](https://wordpress.org/support/users/zeaks/)
 * Last activity: [14 years, 1 month ago](https://wordpress.org/support/topic/content-filter-causing-double-posts/)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
