Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Our RSS feed just stopped working and we get this error in chrome:

This page contains the following errors: error on line 7938 at column 2: Extra content at the end of the document Below is a rendering of the page up to the first error.

There is nothing important on that line other than some post text.

We use an RSS feed plugin to pull content and syndicate it on other sites. Because of this we have the number in "Syndication feeds show the most recent" set to 400. This means that it is showing 400 full posts/pages in the RSS feed. If I change number back to 200, the feed starts working. Set back to 400 and it breaks... Seems like we are hitting a limit somewhere.

I have checked for blank spaces in functions.php, wp-config.php, etc... all were fine.

Anyone have any ideas what might be going on here?

Thanks

share|improve this question
    
Ok, nevermind... We figured out we can pull individual feeds for each categories and so we set the general overall limit back to 10. And here is function to override general limit.<br/> function custom_rss_limits($limits) { if (is_feed() && is_category(‘category-slug’)) { // target a specific feed category and set a unique limit return "LIMIT 0, 20"; } else { // It's not a feed; leave the normal LIMIT in place. return $limits; } } add_filter('post_limits', 'custom_rss_limits');<br/> Hopefully that helps someone. –  Brian Lee Jackson Jan 8 at 21:30
    
You should add this as an answer if it solved your problem. –  Strap1 Jan 8 at 22:02
    
I have to wait 8 hours to answer my own question :( Will delete comment and add there tomorrow. Thanks –  Brian Lee Jackson Jan 8 at 22:56

1 Answer 1

up vote 0 down vote accepted

Ok, nevermind...

We figured out we can pull individual feeds for each categories and so we set the general overall limit back to 10. And here is function to override general limit.

function custom_rss_limits($limits) { if (is_feed() && is_category(‘category-slug’)) { // target a specific feed category and set a unique limit return "LIMIT 0, 20"; } else { // It's not a feed; leave the normal LIMIT in place. return $limits; } } add_filter('post_limits', 'custom_rss_limits');

Hopefully that helps someone.

share|improve this answer
    
Glad you got it to work... Please mark your awner as the right one. –  Sagive SEO Feb 12 at 20:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.