[wp-trac] [WordPress Trac] #36272: Adding media RSS module in wordpress feed
WordPress Trac
noreply at wordpress.org
Fri Mar 18 08:39:42 UTC 2016
#36272: Adding media RSS module in wordpress feed
-----------------------------+-----------------------------
Reporter: dingo_bastard | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.4.2
Severity: normal | Keywords:
Focuses: |
-----------------------------+-----------------------------
I had to add media tag manually for my client, because I was adding a
featured image to the feed and I noticed that wordpress doesn't have
`<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/">`
tag in its rss tag. I noticed this when I got error in my feed validation,
so I had to add it using
{{{#!php
<?php
add_action( 'rss2_ns', 'custom_prefix_add_media_namespace' );
function custom_prefix_add_media_namespace() {
echo "xmlns:media="http://search.yahoo.com/mrss/"n";
}
}}}
I saw a ticket [https://core.trac.wordpress.org/ticket/35043 #35043]
regarding images in the feed being broken, but I'm not sure if this refers
to images in the content, or the featured image.
I'm not sure if it's needed for the images in the content, but it is if we
want to add featured image as a media to the feed.
Could we have a feed that will automatically add featured image to the
main feed as a
`<media:thumbnail url="..." />` if the image is set?
There already [http://matthewman.net/2012/10/09/wordpress-rss-custom-
elements/ are hacks out there], so why not make it official?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36272>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list