Skip to content

Instantly share code, notes, and snippets.

@lots0logs
Created December 9, 2015 22:58
Show Gist options
  • Select an option

  • Save lots0logs/393dab19faa53413d732 to your computer and use it in GitHub Desktop.

Select an option

Save lots0logs/393dab19faa53413d732 to your computer and use it in GitHub Desktop.
// add the namespace to the RSS opening element
function add_media_namespace() {
echo 'xmlns:media="http://search.yahoo.com/mrss/"\n';
}
add_action( 'rss2_ns', 'add_media_namespace' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment