• Link to Mail
  • Link to Facebook
  • Link to Instagram
  • Link to LinkedIn
Questions? Send us a message via live chat or our contact form.
Full Service Design Agency - Multimedia Design Agency
  • PORTFOLIO
    • Our Work
    • Our Clients
  •    MAILCHIMP
    • MAILCHIMP TEMPLATES
      • Compare Our Mailchimp Packages
      • Orangutag Mailchimp Package
        • PSD to Mailchimp Conversion
      • Mini Marmoset Mailchimp Package
        • up to 5 content variants/blocks
      • Curious Chimp Mailchimp Package
        • up to 10 content variants/blocks
      • Mailroom Monkey Mailchimp Package
        • up to 10 content variants/blocks + standard list setup and form customization
      • Gorilla Marketer Mailchimp Package
        • up to 10 content variants/blocks + advanced list setup and form customization
      • Additional Content Variant Blocks
        • Expand your Mailchimp template!
    • PREDESIGNED MAILCHIMP TEMPLATES
      • Simplicity Mailchimp Template
    • ABOUT OUR TEMPLATES
      • MAILCHIMP TEMPLATE USER GUIDE
        • Our complete online Mailchimp template user guide
      • Template Spotlight: Edoughble
      • Ours vs. Theirs | Mailchimp Template Features
      • The Ins and Outs of Variable Content Blocks or Variant Selection
      • Scalable (Mobile Friendly) versus Responsive Integration
      • Bulletproof Mailchimp Templates
      • High Density Display Optimization
      • Which Mailchimp package is right for me?
      • Which Mailchimp package add ons are right for me?
    • ADDITIONAL MAILCHIMP SERVICES
      • Additional Variant Content Blocks
      • Mailchimp Campaign Design
      • Mailchimp GDPR Consent Compliance
      • Mailchimp Integration
      • Mailchimp Landing Pages
      • Mailchimp List Setup and Customization
      • Mailchimp Marketing Automation
      • Mailchimp Template Restoration
      • Mailchimp Template Troubleshooting
      • Mailchimp Training
  • SERVICES
    • EMAIL MARKETING
      • Mailchimp Campaign Design
      • Mailchimp Integration
      • Mailchimp List Setup and Customization
      • Mailchimp GDPR Consent Compliance
      • Mailchimp Template Design
      • Mailchimp Template Troubleshooting
      • Mailchimp Training
      • PSD to Mailchimp
    • MARKETING AUTOMATION
      • Landing Pages
      • Marketing Automation Workflow
    • GRAPHIC DESIGN
      • Contact us for more info
    • PHOTOGRAPHY
      • Contact us for more info
    • WEB DEVELOPMENT
      • Contact us for more info
      • Pueblo Web Design
  • BLOG
  • CONTACT
  • HOW WE WORK
  • HELP
    • HELP
      • Help
        • Find answers to frequently asked questions and access helpful knowledgebase articles and tutorials
    • CLIENT CENTER
      • Client Center
        • Helpful resources, links, and information
    • TEMPLATE USER GUIDE
      • MAILCHIMP TEMPLATE USER GUIDE
        • Our complete online Mailchimp template user guide
  • Click to open the search input field Click to open the search input field Search
  • Menu Menu
  • Shopping Cart Shopping Cart
    0Shopping Cart

Adding the Mailchimp Required < media: content > Tag to your WordPress RSS Feed Output

For creating RSS driven campaigns in Mailchimp using the *|FEEDIMAGE|* merge tag

This tutorial requires you to make changes to your WordPress theme’s function.php file. If you are unable to make changes to this file yourself, or as a result of your website host’s limitations, we recommend the following plugin, Featured Images in RSS for Mailchimp & Other Email (Premium).

You’ll need to copy and paste the following code snippet to your WordPress theme’s function.php file.

The code, when executed, will check for the existence of a featured image in your current feed output and apply the required media:content tag. This allows Mailchimp to identify and pull in your post imagery when populating RSS driven campaigns.

function dn_add_rss_image() {
    global $post;

    $output = '';
    if ( has_post_thumbnail( $post->ID ) ) {
        $thumbnail_ID = get_post_thumbnail_id( $post->ID );
        $thumbnail = wp_get_attachment_image_src( $thumbnail_ID, 'large' );

        $output .= '<media:content xmlns:media="http://search.yahoo.com/mrss/" medium="image" type="image/jpeg"';
        $output .= ' url="'. $thumbnail[0] .'"';
        $output .= ' width="'. $thumbnail[1] .'"';
        $output .= ' height="'. $thumbnail[2] .'"';
        $output .= ' ></media:content>';
    }
    echo $output;
}
add_action( 'rss2_item', 'dn_add_rss_image' );

Editing the following line of code will allow you to specify the size of your feed’s output imagery.

$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, ‘large‘ );

thumbnail
displays your post thumbnail, often defaulted to 150 pixels wide maximum

$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, 'thumbnail' );

medium
displays the medium version of your imagery, 300 pixels wide maximum

$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, 'medium' );

large (recommended)
displays the large version of your imagery, 1024 pixels wide maximum

$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, 'large' );

full
displays the original, unedited, version of your uploaded imagery

$thumbnail = wp_get_attachment_image_src( $thumbnail_ID, 'full' );

TIP

If the default image size settings don’t fit with what you need, you can easily edit the dimensions.

  1. Navigate to your WordPress admin dashboard.
  2. Go to Settings – Media.
  3. In Media Settings, edit the width and height dimensions to suit your values.
  4. Click Save Changes to confirm.

Latest News

  • Adding the Mailchimp Required media:content Tag to your WordPress RSS Feed OutputSeptember 28, 2018 - 12:43 pm
  • Connecting Your Site to MailchimpMarch 8, 2018 - 1:59 pm
  • We’re Not Just Mailchimp Experts, but PartnersMarch 2, 2018 - 10:40 pm
  • We’re Off to Atlanta (and Mailchimp HQ!)February 26, 2018 - 8:00 am
  • Template Spotlight: EdoughbleAugust 8, 2017 - 12:38 pm

Prefer to receive updates via email?

Subscribe
View a recent issue | MailChimp Powered by Mailchimp

READY TO PLACE AN ORDER?

Use our convenient online ordering system or give us a call at 888 476 6168 to place your order via telephone.

Our online ordering system is the quick, secure way to place your order and allows your company to get started quickly – even outside normal business hours, on holidays, and during weekends. Once your order is placed you’ll receive immediate download access to key documentation required for your project (if any).

Build your brand with expert insight and recommendations from our MailChimp Partners

direct to your inbox

Sign me up!
View a recent issue | MailChimp Powered by Mailchimp

ABOUT US

About Us
Clients
How We Work

NEED HELP?

Find answers to frequently asked questions and access helpful knowledgebase articles and tutorials via our Help section.

Search Search
Copyright © 2025 Blueprint Media Studios LLC PO Box 7922 Pueblo West, CO 81007-2854. All rights reserved. Policies | Privacy Policy | Cookie Policy | Data Access Request
  • Link to Mail
  • Link to Facebook
  • Link to Instagram
  • Link to LinkedIn
Link to: Connecting Your Site to Mailchimp Link to: Connecting Your Site to Mailchimp Connecting Your Site to Mailchimp
Scroll to top Scroll to top Scroll to top