We recently divided our corporate blog into two blogs, one for the product and one for the corporation, to help focus the content and prepare for future growth on each blog. However, we want to keep the subscriber experience the same for our 150,000+ subscribers and blend the two feeds.
My solution has been to piggyback the exisiting blog notification email with the following code:
And where this is working for the most part it’s not pulling the the post summary and I’m getting duplicate posts. Any help would be greatly appreciated.
Right off the bat I notice that your blog post variables aren’t going to work. Your variables should use the the single item name of your loop, “.”, then the variable. You can find the list of variables here.
@Jsum thank you! This is very promising, do you know of a way to filter out images from post summarys? Also, the limit setting does not seem to work, I am continuing to get duplicate posts throughout the email. Thoughts?
To get rid of the images in the summary, first there is a setting under content->content settings → blog. it is a check box that asks if you would like to use images in the listing summary.
second you should use this token for your summary
{{ content.post_list_content }}
where content is the name of the single item in your loop.
as for duplications, the recent blogs function works like this:
it pulls the most recent blogs from your blog at the limit you set. Since you are using 2 function with a limit of 5 and combining them you should recieve the 5 most recent blogs from each blog for a total of ten. If you are recieving duplicate posts then
1. your posts are duplicated with your blogs
2. your posts are duplicated across your blogs
3. your markup us causing more than one of a listing per loop, as in you are using your markup twice or more within the for loop. If you have more than 10 blogs total than I would bet it is your markup.