Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 6 years ago

#36272 closed feature request (duplicate)

Adding media RSS module in wordpress feed

Reported by: dingo_d's profile dingo_d Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4.2
Component: Feeds Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

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
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 #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 are hacks out there, so why not make it official?

Change History (4)

#1 @swissspidy
9 years ago

  • Component changed from Media to Feeds
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hey there,

Welcome to trac! Thanks for creating this ticket, but we're already tracking this in #8994.

At the moment this is plugin territory and I recommend you a plugin like https://wordpress.org/plugins/wp-feed-post-thumbnail/ (note: I'm the co-developer) to implement this.

#2 @SergeyBiryukov
9 years ago

  • Description modified (diff)

#3 @dingo_bastard
9 years ago

Oh, I didn't know about the existing ticket. Thanks for the heads up. I know about plugins, this one just seemed like something that should belong to the core.

#4 @dd32
6 years ago

  • Reporter changed from dingo_bastard to dingo_d
Note: See TracTickets for help on using tickets.