Super useful for big exports. via @laurakalbag

Twitter Cards for WordPress blogs

What Open Graph is for Facebook, Twitter Cards are for… well, Twitter:

Twitter cards make it possible for you to attach media experiences to Tweets that link to your content. Simply add a few lines of HTML to your webpages, and users who Tweet links to your content will have a “card” added to the Tweet that’s visible to all of their followers.

While Facebook parses Open Graph tags from every page, you have to sign up for Twitter Cards.

Before you do that, you need to have properly working Twitter Cards metatags on your page, which is fortunately not that complicated – either follow their instructions for your CMS or enjoy the fact that you are using WordPress and install Niall Kennedy’s Twitter Cards plugin. If you’re lazy like me and don’t want to fiddle around with your theme’s function.php, just use my Twitter Cards Enhancer plugin which includes the tags automatically. To get the proper attribution tags, you’ll have to fill out two (new) fields in your WordPress backend, though:

Put your blog’s twitter account under “Settings”:

Screen Shot 2013-01-22 at 10.56.50 AM

And each author on your blog should put their twitter account under “Users” → “Your Profile”:

Screen Shot 2013-01-22 at 10.57.14 AM

Once you’re done with that, use Twitter’s test tool and apply for inclusion. When everything works out as intended, tweets that include your posts will start to look like this:

Screen Shot 2013-01-22 at 11.10.45 AM

Or probably better.

Bookmarks for October 14th

lostfocus soundtracked "ShaoLin Kung Fu Is Good!" by AV Okobu – SoundTracking
♫ soundtracking "ShaoLin Kung Fu Is Good!" by AV Okobu (@ Media Ventures GmbH)
‘My Blackberry Isn’t Working’ – HereIsTheCity.com
Hihihi: "My Blackberry Isn't Working" /via @luebue
Untitled (http://twitter.com/dominik/status/124828966912659456/photo/1)
Finally A Game For Girls! Lady Popular | Rock, Paper, Shotgun
"And now I have a boyfriend! His name is Car washer, and he gives me $50 a day."
query posts – When should you use WP_Query vs query_posts() vs get_posts()? – WordPress – Stack Exchange
RT @katemag: When should you use WP_Query vs query_posts() vs get_posts()? with a diagram to explain it #WordPress

Bookmarks for August 12th through August 15th

Bookmarks for August 9th through August 10th

Bookmarks for June 14th through June 15th

The return of @rivva reminds me again how stupid the German blogosphere so often is.
RT @newezra: Single serving, fullscreen animated gifs? Yes! @topherchris's latest blog
Property for sale in Wilsford Cum Lake – Houses for sale in Wilsford Cum Lake
I would not go for a swim nearby these houses. #gnihihihi
Adriano Celentano – Wikipedia, the free encyclopedia
@tomcoates I remember the Beatles, Joe Cocker, Adriano Celentano and the Spider Murphy Gang.
Spider Murphy Gang – Wikipedia, the free encyclopedia
@tomcoates I remember the Beatles, Joe Cocker, Adriano Celentano and the Spider Murphy Gang.
Untitled (http://www.lostfocus.de/archives/fun/bahn-it-ler.jpg)
@widenka @johl "Top-Aktuell: EDV im modernen Arbeitsumfeld. "
OmniGraffle Wireframe Stencils | Konigi
"A web application used to build and maintain an archetypal, invisible website format that combines text, image, movie and sound."
WordPress › Daring Fireball-style Linked List Plugin
Worth having a look at, later. I'm not too sure what to do about the whole link blogging/bookmarking.
Traumatic brain injuries in the Asterix comics
Drowning my sorrows in Tannenzäpfle and old Top Gear episodes. | pixi.li
Drowning my sorrows in Tannenzäpfle and old Top Gear episodes. #fb
Download Go the F–k to Sleep | Adam Mansbach | Go the F–k to Sleep Audio Book UNABRIDGED | Audible Audiobooks | Audible Audio Edition |Audible.com
Go the F–k to Sleep, Narrated by Samuel L Jackson
(404) http://news.bbc.co.uk/2/hi/world/americas/78/default.stm
RT @PRDH: More Britons died on the Titanic because they queued politely for the lifeboats – …
China’s Cell Phone Pirates Are Bringing Down Middle Eastern Governments | Fast Company
Fascinating article about the way Chinese Shanzhai phones are fueling the "Arab Spring"

How to rescue your WordPress-Tag-Feeds when using the FeedBurner FeedSmith plugin

It’s quite popular to use the FeedSmith-Plugin when using FeedBurner with WordPress.1 There is just one little problem: as Google themselves say on their webpage:

Please note that “tag” feeds in later WordPress versions are not supported.

Which just goes to show that they’re a bunch of lazy bums. All you need to do to make the feeds for tags work again is to change this line:

if (is_feed() && $feed != 'comments-rss2' && !is_single() && $wp->query_vars['category_name'] == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '') {

into this:

if (is_feed() && $feed != 'comments-rss2' && !is_single() && $wp->query_vars['category_name'] == '' && $wp->query_vars['tag'] == '' && ($withcomments != 1) && trim($feedburner_settings['feedburner_url']) != '') {

in the FeedBurner_FeedSmith_Plugin.php.


  1. Yay, CamelCase! Well, you’re at LostFocus. Duh. []

All your shortlinks are belong to us.

If you’re using WordPress, you might not be in charge of your shortlinks anymore:

wp.me is the url shortener of wordpress.com. You might have seen it when someone posted a link to his blog post on twitter. This is all nice and dandy for a hosted solution like wordpress.com. Now they found a sneaky little trick to even get blogs not hosted with them to use wp.me: They changed their widely popular stats plugin to add the wp.me-short url. Without any visible settings to turn it on or off, it’s basically by default opt-in.1 And besides one line in the release notes, I could not see any communication about this “shortlink high-jacking:”

Add shortlink generator. Now wp.me shortlinks are available on the Edit Post screen from a button next to View Post.


  1. And don’t get me started on the fact that they use rel=”shortlink” instead of rev=”canonical” []

Introducing WordPress Hook Sniffer: a Developer Plugin

Introducing WordPress Hook Sniffer: a Developer Plugin

Useful little plugin to reveal the inner workings of WordPress.


Basically, this is just a long test post for the OpenCalais plugin to see if it will find anything. They have a nice blog post about what they are and what they do over here – strangely enough they talk about having 30000 developers using their services but only 50 publishers and 75 entrepreneurs. So what do all the other developers do? [via]

And after writing just this, I am impressed that the plugin notices that I write about “Technology/Internet” but disappointed that it doesn’t offer pretty simple tags like “OpenCalais.”
It does offer me those two pretty pictures, though – they are supposed to be related to my content:

(Image: + Day 47 + Reverse the history, a Creative Commons Attribution Non-Commercial (2.0) image from bichxa’s photostream)

(Image: The Fractalius Cat, a Creative Commons Attribution Non-Commercial No-Derivative-Works (2.0) image from alemdag’s photostream)

The Flickr attributions are not done through the plugin, I’m using this bookmarklet for those.

Theme Development Checklist « WordPress Codex

Theme Development Checklist « WordPress Codex

What is needed for a good WP theme.

Elastic Theme Editor

Elastic Theme Editor

Interesting – a wordpress plugin that can create new themes.

Bootstrapping WordPress MU from the command line interface

I had some problems bootstrapping WordPress MU so I can use it’s native functions for a command line script.
Basically those lines in wpmu-settings.php stopped the command line script from working:

if( $current_site->domain != $_SERVER[ 'HTTP_HOST' ] ) {
	header( "Location: http://" . $current_site->domain . $current_site->path );

The fix seems to be to set the $_SERVER[ 'HTTP_HOST' ] to the root domain of the installation:

	$_SERVER['HTTP_HOST'] = 'wpmu.local';

Bookmarks for November 26th through November 27th

These are my links for November 26th through November 27th:

Bookmarks for November 18th through November 19th