Duplicate featured images in feed
-
Reposting this as new, thought I had the first time, apologies…
Hi Robin,
Great plug-in, solves a problem I have with my MailChimp RSS campaign getting ugly when some of my writers post monster photos.
A question, which frankly is an issue with a new theme I’m using, but which I thought you might have ideas on since you clearly know the in and outs of WP RSS, MailChimp, etc…
In my feed I now get both the featured image and its thumbnail, which both show up in the MailChimp email. See https://millstonenews.com/feed
Theme authors don’t know what to do. Any thoughts?
Follow-up:
As you suggested, I tried adding this to functions.php, but that gave me three (!) images — two regular-size and one thumb. Seems like there’s something funky happening with the new theme. And no, it’s certainly not your plug-in.
add_filter( 'the_content_feed', 'rgc_add_featured_image_to_feed', 1000 ); function rgc_add_featured_image_to_feed( $content ) { if ( has_post_thumbnail() ) { $content = get_the_post_thumbnail( get_the_ID(), 'mailchimp', array( 'style' => 'display:block;margin: 0 auto 12px;' ) ) . $content; } return $content; }
Anyway, thanks for the reply.
- The topic ‘Duplicate featured images in feed’ is closed to new replies.