I am building a WP website where the client uses Blogger to manage their blog for their business (they have no intent on switching to WP to blog, don't ask me why, ugh). The code below works great for many other blogs, including the jQuery blog, WP Tuts+, and my personal blog.
However, I cannot get any Blogger blog feeds to display. I can grab the feed in Google Reader just fine and the feeds are all valid, per feedvalidator.org. Anyone have any thoughts as to why I can't grab Blogger feeds? Thanks.
<?php if(function_exists('fetch_feed')) {
$feed = fetch_feed('http://printsourceva.blogspot.com/feeds/posts/default?alt=rss');
$limit = $feed->get_item_quantity(1);
$items = $feed->get_items(0, $limit);
if($limit == 0) echo '<div>The feed is either empty or unavailable.</div>';
else foreach ($items as $item) : ?>
<p><?php echo substr($item->get_description(),0, 200); ?> </p>
<a href='<?php echo esc_url( $item->get_permalink() ); ?>'
title='<?php echo esc_html( $item->get_title() ); ?>'>
Read more
</a>
<?php endforeach; ?>
EDIT: So my problem was that the images are loaded at the top of the post and were loading rather than the text. D'oh. Is there an easy way to just parse out the images from the feed?