I'm trying to build a custom RSS feed from scratch, and want to include an image that I can pull out using Mailchimp.
So my current RSS item looks like this:
<item>
<link><?php echo get_permalink($beforeAfter->procedureID); ?></link>
<media:content url="<?php echo get_bloginfo('url').'/wp-content/uploads/before-after/md/'.$beforeAfter->after_img;?>" type="image/jpg" />
<?php rss_enclosure(); ?>
<?php do_action('rss2_item'); ?>
</item>
But when I view it, I get the error:
error on line 15 at column 124: Namespace prefix media on content is not defined
If I remove the <media:content>
line, the error goes away. Any ideas why the error is appearing, and why it won't read it correctly?
Here are some links I'm using for reference: http://www.rssboard.org/media-rss#media-content http://kb.mailchimp.com/merge-tags/rss-blog/feedblock-rss-merge-tags