RSS image size for Mailchimp

Posted in: Newspaper
Post count: 18

Hi,
Before I installed newspaper I had some add rss image size to the function.php file. Now I don’t know where to put in the newspaper function file to force the particular size in our Mailchimp rss campaigns.

I have tried several plugins, but they create a different url that won’t work with our new server.

Here is the code I was using:
add_filter('the_content_rss', 'featuredtoRSS');
add_filter('the_excerpt_rss', 'featuredtoRSS');

// Include Video Thumbnail in RSS Feed
function featuredtoRSS($content) {
global $post;
if ( in_category('videos') && has_post_thumbnail( $post->ID ) ){
$content = '' . '<div style="text-align:center">' . 'ID) . '">' . get_the_post_thumbnail( $post->ID, 'Featured Video', array( 'style' => 'float:none; display:inline; margin-right:auto !important; margin-left:auto !important; height:auto !important; max-width:525px !important; max-height:600px !important;' ) ) . '' . '</div>';
}
//Diana's comment this part is not used plus it looks unfinished
elseif ( in_category('cartoons') ){
$content = '<div style="text-align:center">' . 'ID) . '">' . 'Cartoon:' . get_the_title($post->ID) . '' . '</div>';
}
else {
$content = $content . '<br />' ;
}
return $content;

Can you help me with the correct why to achieve what I need to do or give me instructions on how to add this code to the newspaper function.php file?

Thank you so much for looking at this and helping me.

Diana

Post count: 7909

Hi,

Try to add your code at the end of functions.phphttp://screencast.com/t/4meogHZZjb4

Thanks!

Post count: 18

Sorry for the late reply……….this worked perfectly.

Huge thank you so much!

Diana

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.