Title: the_content_rss &#8211; not pulling data.
Last modified: August 18, 2016

---

# the_content_rss – not pulling data.

 *  [stma](https://wordpress.org/support/users/stma/)
 * (@stma)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/the_content_rss-not-pulling-data/)
 * I’ve got a bit of a problem with a script I used. Here is the code that worked
   fine up until the recent 2.1 build.
 *     ```
       $excerpt = get_the_excerpt(true);
           $excerpt = str_replace("\n",'',$excerpt);
           $excerpt = str_replace("\r",'',$excerpt);
           $excerpt = str_replace("\t",'',$excerpt);
           $excerpt = preg_replace('/\s\s+/', ' ', $excerpt);
           $output .= apply_filters('the_excerpt_rss', $excerpt);
           $output .= "\n";
       ```
   
 * Prior to the new 2.1 build it worked fine and would pull content even if there
   was no defined excerpt.
 * Now it’s not working unless a excerpt is defined for each post. This new code
   should work – but doesn’t pull anything.
 *     ```
       $excerpt = get_the_content(true);
           $excerpt = str_replace("\n",'',$excerpt);
           $excerpt = str_replace("\r",'',$excerpt);
           $excerpt = str_replace("\t",'',$excerpt);
           $excerpt = preg_replace('/\s\s+/', ' ', $excerpt);
           $output .= apply_filters('the_content_rss', $excerpt);
           $output .= "\n";
       ```
   
 * I’m finding conflicting information and just need some advice. I’ve tried pulling
   out the str_replaces, etc… I’ve tried different variables in the function names,
   no go.

The topic ‘the_content_rss – not pulling data.’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [stma](https://wordpress.org/support/users/stma/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/the_content_rss-not-pulling-data/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
