Title: Use custom feed
Last modified: September 2, 2016

---

# Use custom feed

 *  Resolved [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/use-custom-feed/)
 * My custom feed (modifed feed-rss2.php, copied to my custom theme folder and used
   with custom functions) is now displaying validation errors of ‘XML parsing error::[
   line number]:0: junk after document element’.
 * Although such errors often seem to be from unwanted code injections, mine is 
   showing ‘Cannot modify header information – headers already sent by’… which I’ve
   previously had with unwanted white space.
 * ‘Warning: Cannot modify header information – headers already sent by (output 
   started at …path to… /wp-includes/feed-rss2.php:11) in …path to custom theme…/
   feed-rss2.php on line 3.’
 * The two files noted in the error, are identical to those in other installs which
   don’t have this error – which seems to trigger at the end of the last-but-one
   item in the feed.

Viewing 1 replies (of 1 total)

 *  Thread Starter [gulliver](https://wordpress.org/support/users/gulliver/)
 * (@gulliver)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/use-custom-feed/#post-7722280)
 * UPDATE: Seems the code in my functions was the issue – even though it was a direct
   cut/paste of that working on in another install. Strange.

Viewing 1 replies (of 1 total)

The topic ‘Use custom feed’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [gulliver](https://wordpress.org/support/users/gulliver/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/use-custom-feed/#post-7722280)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
