A client needed to import her RSS feed into a MailChimp campaign but the image wasn’t showing up. Here is how I finally got it to work.
MediaRSS
You first need to make sure the feed (yoursite.com/feed usually) is correctly bringing in the first image. I used a plugin called wpRichFeeds plugin removed, here is a new download link (view plugin author site) which adds the enclosure information to your feed in WordPress. This is basically plug-n-play.
MailChimp Code
Then with some creative MailChimp RSS merge tags I got it to work. This is what I used:
<a href="|RSSITEM:URL|"><img alt="" src="|RSSITEM:ENCLOSURE_URL|" width="300" height="200" /></a>\
I hope this will save some people the aggravation of trying to get MailChimp to automatically pull in blog post images from an RSS feed.
This post also helped me get to this point, RSS email: include post thumbnail image from WordPress RSS feed
Here are the MailChimp RSS merge codes for reference.
Please comment if this helps you out! Any tweaks?
Kaelin says
Which would be exceptionally helpful information, except you have an xml parse error on your feed, so we can’t look at the results.
:)
John says
This is great stuff! Works perfectly.
I do have a question related to this though. Do you know how to use the *|RSSITEM:CONTENT|* tag but show a longer amount of text? I’d like to show more text than the default, but less than *|RSSITEM:CONTENT_FULL|*
Thanks!
Blake Imeson says
I don’t know off-hand but I would think there would be someway to control the excerpt length. I’ll let you know if I find anything.
Christian says
Thanks a lot! Finally managed to get images working after reading this post.
EN says
This is excellent!!!! Quick question? Is there a way to integrate that functionality with Mailchimp’s post code: *|RSS:POSTS_HTML|*
The end result is an image beside each post text blurb.
Jeremy Myers says
What happened to the image? It’s broken, and it contains the information I need!
LimeCuda says
Sorry, I had a plugin that needed to be reenabled
codrin says
hmmm…the image, please…
James McBride says
I have the same problem as Jeremy, the solution to the problem I have isn’t on the page anymore because the image isn’t showing!
LimeCuda says
The syntax plugin has been fixed, the text should be visible again.
James McBride says
Thanks so much for fixing this, I’ve been pulling my hair out for 2 weeks over this issue. MailChimp should really integrate your solution into their help section.
Blake Imeson says
You’re welcome. Glad it helped!
Ancient Wisdom says
Thanks Blake – the link to the plugin above doesn’t work, but I found out through the author site that you can download wpRichFeeds from here: http://williamscastillo.com/code/wp-content/uploads/wprichfeeds.zip
Blake Imeson says
Thanks, I updated the post with the new link.
Hollie Olivia says
After hours of mucking about elsewhere, this worked like a hot damn. Awesome.
Much gratitude.
jason says
Thank you. I have been trying to figure this out for a couple hours.
Groux says
Thanks !!! I love you
Yashwant says
Thanks a ton man !! I was trying to figure out a solution for my mail chimp campaign and your suggestion worked.. :)
Julian says
Awesome, worked like a charm!
Julie @ meybestandi says
sorry stupid question (WP newbie) where does the code go?