Hi Guys,
I am setup mailchimp newsletter service in my wordpress blog. Newsletter working fine but Blog post not integrate properly as what i need.
Spend too many hours but not success.
Here is cheat code what i am using
|RSSITEMS:|
|RSSITEM:TITLE|
|RSSITEM:DATE|
|RSSITEM:CONTENT_FULL|
|END:RSSITEMS|
I want display my recent 5 posts + titles + summary text + images. But this cheat code not achieve these above required format.
Any one have experience with mailchimp to achieve these above format content in newsletter.
Need help.
How many posts is your feed displaying? Did you create a custom feed ? What you can do is also adding the featured imageto your feed.
corsonr said
How many posts is your feed displaying? Did you create a custom feed ? What you can do is also adding the featured imageto your feed.
Yeah i have many post in my feeds. Yes i have newsletter seperate feed url. So how to show featured image in feeds.
This trick works fine but include post featured image.
|FEEDBLOCK:http://webdesignerart.com/mag/category/newsletter/feed|
|FEEDITEMS:[$count=5]|
|FEEDITEM:URL|” target=”_blank”>|FEEDITEM:TITLE|
|FEEDITEM:DATE| -
|FEEDITEM:CONTENT_TEXT||FEEDITEM:URL|” target=”_blank”>readmore.
|END:FEEDITEMS|
|END:FEEDBLOCK|
// THIS INCLUDES THE THUMBNAIL IN OUR RSS FEED
function insertThumbnailRSS($content) {
global $post;
if ( has_post_thumbnail( $post->ID ) ){
$content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail' ) . '' . $content;
}
return $content;
}
add_filter('the_excerpt_rss', 'insertThumbnailRSS');
add_filter('the_content_feed', 'insertThumbnailRSS');webdesignerart said
Here is cheat code what i am using |RSSITEMS:| |RSSITEM:TITLE|
|RSSITEM:DATE|
|RSSITEM:CONTENT_FULL|
|END:RSSITEMS|
The merge tags seems to be fine the way you are using them (thought you missed the asterisks but notice they are just being trimmed by this forum).
So, a basic question: Are you sure you are working on a RSS -To-Email campaign? The RSS defined is a valid one? Double-check it.
Another comment: The FEEDBLOCK merge tag has nothing to do with the RSSITEMS tag (and related). Be careful with what you are doing and what you are expecting.
And last but not least: With an RSS -To-Email campaigns you can’t force the process to display FIVE RSS entries (or any other number for the matter). The way it works is that it will display as many new entries it found since the last time it was sent. You might force your RSS feed to show the latest five, but you could be leaving some of your posts out of it if you post often.
If you want to show your latest five posts, you should use the FEED merge tag. here’s a recent blog post about it: http://blog.mailchimp.com/add-blog-posts-to-a-regular-campaign/I hopeit helps, Will
