WordPress.org

Support

Support » How-To and Troubleshooting » Feed Validator Error

Feed Validator Error

  • Hi,

    I get this error on the feed validator:

    is feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

    line 47, column 0: content:encoded should not contain iframe tag (3 occurrences)

    Here is the code that is highlighted:

    <content:encoded><![CDATA[<p><iframe width=”520″ height=”390″ src=”http://www.youtube.com/embed/_gsRHEHAY6Y?feature=oembed” frameborder=”0″ allowfullscreen></iframe></p>

    Can someone please help to correct?

    Thanks,

    Curtis

Viewing 3 replies - 1 through 3 (of 3 total)
  • Have you tried disabling all plugins?

    Hi

    Thanks for the response. I didn’t have any plugins installed prior to today. I’ve had the error for some time now.

    Curtis

    In my case this is a recommendation and not a validation error on feedvalidator.org:

    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.
    
    line 42, column 0: content:encoded should not contain iframe tag [help]
    
    <p><iframe width="500" height="281" src="http://www.youtube.com/embed/Gk5OJB ...

    This comes when using the built in oembed in WordPress.

    If you want to remove the iframe from your feed, you could try this:

    function custom_strip_rss($content){
    	if(is_feed()){
    		global $allowedposttags;
    		$content = wp_kses( $content, $allowedposttags );
    	}
    	return $content;
    }
    add_filter('the_content', 'custom_strip_rss');

    where $allowedposttags doesn’t contain iframe on my 3.5.2 alpha install.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Feed Validator Error’ is closed to new replies.
Skip to toolbar