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.
The topic ‘Use custom feed’ is closed to new replies.