Tag Archives: rss

How to add posts’ featured images to WordPress RSS feeds

The standard WordPress RSS-feeds don’t include posts featured image. Below code adds the medium-format thumbnail to each item in a RSS2 standards-compliant manner by inserting it as an enclosure.

add_action('rss2_item', 'add_enclosure_thumb');
function add_enclosure_thumb() {
  global $post;
  if(has_post_thumbnail($post->ID)) {
    $thumbUrl = get_the_post_thumbnail_url($post->ID,"medium");

    if ((substr($thumbUrl, -4) === "jpeg") || (substr($thumbUrl, -3) === "jpg")) {
      $mimeType="image/jpeg";
    } else if (substr($thumbUrl, -3) === "png") {
      $mimeType="image/png";
    } else if (substr($thumbUrl, -3) === "gif") {
      $mimeType="image/gif";
    } else {
      $mimeType="image/unkown";
    }

    $thumbSize = filesize(WP_CONTENT_DIR.str_replace(WP_CONTENT_URL,'',$thumbUrl));

    echo "<enclosure url=\"".$thumbUrl."\" size=\"".$thumbSize."\" type=\"".$mimeType."\" />\n";
  }
}

A more advanced & flexible approach would be to add support for the media RSS namespace, but the above suffices for the purpose I have in mind.

Feedreading on the move with Tiny Tiny RSS for Android

I’m a RSS-junk and I use Tiny Tiny RSS as my needle, so I was happy to find an official tt-rss client for Android a couple of weeks ago. Works like a charm, quirks included. Especially the “Offline” functionality is a great help to read up on what’s happening while on the train, where the data-connection can be … flaky.

Now if all you guys & girls can make sure your blogs push out full feeds instead of those frigging teasers?

More power to the reader with RSS and mail-subscriptions

As I’m a self-confessed believer in the power of RSS and as this blog is both about web technology (written in English) and more personal stuff (in Dutch), I’ve decided to offer separate RSS-feeds for these two categories. Moreover I’ve also enabled mail-subscriptions in Feedburner., so if you want you can receive my ramblings by mail.

That means that from now on you have these subscription-links to choose from:

I’ve thought about publishing to a Facebook-page and Twitter as well, but that just seems so … over the top, no?

Don’t bury RSS just yet

RSS is dead and Facebook and Twitter killed it! Or at least that’s what some web & trend-watching bloggers conclude from the demise of Bloglines, the once cutting-edge web-based feedreader. And indeed, people are increasingly discovering news items and memes through their friends’ status updates, re-tweeting or -sharing stuff they deem interesting. And yes Flipboard, which scans your Facebook & Twitter feeds for links (scraping content from the pages instead of using feeds, to the dismay of some publishers), is the talk of the iTown. Look ma, no RSS!

But hold your horses; do you know what the most requested feature for Flipboard is? Integration with Google Reader and the ability to include RSS-feeds is in high demand as well! And while we’re at it, Google Reader seems not to be doing too bad either, according to their own stats, probably because Reader -as opposed to Bloglines- continuous to evolve,  integrating a slew of social features. Reader is also the primary source for Feedly, a popular browser add-on that offers a magazine-like view on subscribed feeds. And proving RSS is not dead yet, Automattic last week launched Subscriptions on wordpress.com, which displays your subscribed feeds in a stream-like fashion, including the writer’s profile picture and a ‘reblog’ and ‘like’ button (i.e. resembling what Peter Van Dijck proposed earlier that day).

Even if RSS-readers would ever become marginalized, RSS and similar standardized XML-based newsfeeds (think Atom) are indispensable to syndicate content from one site in another application. After all, how do you think news outlets and blogs feed their content into Twitter and Facebook in the first place?

How to exclude blogposts from your feed

I decided to start auto-posting weekly digests of my Lifestream-events to this blog, but wanted to prevent those items from polluting my rss-feed (call me a old-fashioned, but I like rss-feeds to have some body instead of just a couple of links and an occasional YouTube-clip). This turned out to be very easy with some category-tinkering and thanks to Feedburner.

Here’s what I did:

  1. Add a category “rss-able” and make it the parent of all existing categories
  2. Add a category “web wandering” (not under “rss-able” off course) and configure Lifestream to use that for the digests
  3. Configure Feedburner to use http://blog.futtta.be/rss-able/feed instead of http://blog.futtta.be/feed
  4. Exclude both new categories from being displayed in my “category cloud” widget

And there you have it; my Google Reader shared items, YouTube video’s and favorites, Facebook status and Tweets (if ever I would decide to do such a thing) are automatically collected in a weekly blogpost without bothering rss-readers or my Facebook-friends (who get that info shoved down their throats via Facebook-imports of the individual feeds anyway).

I decided to start auto-posting weekly digests of my Lifestream-events to this blog, but wanted to prevent those items from polluting my rss-feed (call me a old-fashioned, but I like rss-feeds to have some body instead of just a couple of links and an occasional YouTube-clip). This turned out to be very easy with some category-tinkering and thanks to Feedburner. This is what I did:

1. Add a category “rss-able” and make it the parent of all existing categories
2. Add a category “web wandering” (not under “rss-able” off course) and configure Lifestream to use that for the digests
3. Configure Feedburner to use http://blog.futtta.be/rss-able/feed instead of http://blog.futtta.be/feed
4. Exclude both new categories from being displayed in my “category cloud” widget

And there you have it; my Google Reader shared items, YouTube video’s and favorites, Facebook status and Tweets (if ever I would decide to do such a thing) are automatically collected in a weekly blogpost without bothering rss-readers or my Facebook-friends (who get that info shoved down their throats via Facebook-imports of the individual feeds anyway).

Facebook voor lamzakken (en het gevaar van twitterish)

ik importeer in facebookIk ben liever lui dan sociaal, zelfs op Facebook. Ik laat de software dus mijn werk doen; de feeds van mijn blogposts, mijn Google Reader shared items en mijn YouTube uploads en favorites worden geïmporteerd en verschijnen zo automatisch op mijn ‘prikbord’ en -als Facebook het correct doet tenminste- in de ‘stroom’ op de homepage van mijn virtuele vrienden (*). Dezelfde feeds worden overigens ook op de lifestream-pagina op mijn blog en op mybloglog geaggregeerd.

Twitteraars (nee, ik ben nog steeds niet mee) synchroniseren hun kortspraak met een Facebook-applicaties van Twitter zelf. Nu is die twittersphere een raar wereldje, waar ingewijden in hoog tempo tweeten en daarbij ook nog eens een heel eigen taaltje spreken. Want wat te denken als je op Facebook dit voorbij ziet komen;

RT @ubertwit: om 18h twunch met @twitaholic en @tweeter in #pizzahut gent, reply @twunch als je er ook zal zijn

Voor twitteraars een duidelijke boodschap (vertaling beschikbaar bij je twitterende buurjongen), maar als deze tweet volautomatisch in de context van Facebook wordt gegooid, is dit “utter gibberish” waar je FB-friends niets aan hebben. Nee, dan is de “Selective Twitter update”-applicatie een veel beter alternatief; enkel tweets waarin #fb voorkomt worden daarmee geïmporteerd. Ik zou mijn Twitterende Facebook-vrienden dan ook vriendelijk willen vragen om een beetje selectief te zijn met wat ze op Facebook gooien. Uw context is de mijne immers niet!


(*) Hoe je zelf moet importeren in Facebook? In je profiel op de ‘settings’-knop onder het status-update venster klikken en je zou iets moeten zien dat op het screenshot hierboven lijkt.

deredactie.be doet full monty in de feed; applaus!

De nieuwe versie van deredactie.be is een grote stap vooruit. Niet zozeer omwille van wat ge wel, maar eerder om wat ge niet -direct- ziet; ze hebben hun inhoud bevrijd. De atom-feeds lijken nu immers de volledige artikels te bevatten. Ge kunt niet zeggen dat ze stil blijven staan, daar aan de Reyerslaan! Applaus!