Title: Hide certain content in a post
Last modified: August 19, 2016

---

# Hide certain content in a post

 *  [lufc4life](https://wordpress.org/support/users/lufc4life/)
 * (@lufc4life)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/)
 * Hi, ive enabled it so that I can post to my blog via email, however when I send
   an email to create a post the email has some unwanted text at the bottom that
   the email provider has added.
 * Is there a way to hide this text automatically when posted to my blog? Btw, it
   is the same text all the time.
 * Thank you

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/#post-1646552)
 * is it wrapped in anything when you view the source?
 * You could use display:none in css to hide it, but it depends what it looks like
   in your source code
 *  Thread Starter [lufc4life](https://wordpress.org/support/users/lufc4life/)
 * (@lufc4life)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/#post-1646562)
 * In the source code its just displayed using a <p> tag
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/#post-1646721)
 * try to add a filter:
 *     ```
       add_filter('the_content','strip_email_provider_text');
       function strip_email_provider_text($output) {
       $output = str_replace('<p>the email provider added text</p>','',$output);
       return $output;
       }
       ```
   
 * add this to functions.php of your theme; maybe try without the `<p>` tags, if
   above does not work.
 * [http://php.net/manual/en/function.str-replace.php](http://php.net/manual/en/function.str-replace.php)
   
   [http://codex.wordpress.org/Plugin_API#Create_a_Filter_Function](http://codex.wordpress.org/Plugin_API#Create_a_Filter_Function)
 *  Thread Starter [lufc4life](https://wordpress.org/support/users/lufc4life/)
 * (@lufc4life)
 * [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/#post-1646815)
 * thanks alchymyth that worked great

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hide certain content in a post’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [lufc4life](https://wordpress.org/support/users/lufc4life/)
 * Last activity: [15 years, 8 months ago](https://wordpress.org/support/topic/hide-certain-content-in-a-post/#post-1646815)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
