This is a “Daring Fireball Linked List” plugin for WordPress, as seen on tech blogs 512 Pixels, A Very Nice Web Site, Brooks Review, Shawn Blanc, The Loop, and probably more (let me know!). Daring Fireball doesn’t use this, but John Gruber doesn’t mind the use of the name. Well, he didn’t, in 2010.
This plugin has two features:
- It makes your blog’s RSS feed behave like Daring Fireball, which is great when you post links often. Shawn Blanc, who inspired this plugin, has a detailed writeup on the different behaviours of RSS link posts.
- It sets the custom field “linked_list_url” to the first link in the post content. This is handy for using with the ‘Press This’ bookmarklet.
Important: Please note that the plugin only affects the behaviour of your RSS feeds, and not how posts are displayed on your blog! To customise that, you’d need to modify your theme, or download my template. You can find out how to customise your theme, or get in touch if you’d like to pay me to do it for you.
Main Feature: RSS feed adjustments
When posting, set the custom field “linked_list_url” to the desired location on a link post. In your RSS feed, the following will happen:
- The item’s RSS permalink becomes the link destination;
- The actual permalink to your post is inserted as a star glyph at the end of your post
- A star glyph is added in front of your non-linked-list post titles.
All three parts are customisable — you can use different glyphs or text if you’d like (e.g. change the star glyph to a cross), and you can add text around your link post titles (e.g. Link: my link ») to highlight your link posts in the RSS feed.
For theme designers, the plugin provides the following functions:-
These functions will help identify linked list items among your blog posts, so you can customise your post titles accordingly in your WordPress loop.
Side Feature That Nobody But Me Uses: Link from Post Content
This allows you to set the custom field without fiddling with any menu items.
First, turn on the option in the Settings page. Next, on any page you’d like to link to, just click on the “Press This” bookmarklet (which you can install from your WordPress admin page, under Settings → Writing). The following will pop up:
Click on the end of the first line, press enter (be careful not to delete the period!), and type whatever comments you’d like. The plugin will automatically grab the URL in the first line, set it to the linked_list_url custom field, and delete the entire first line for you, preserving whatever you’ve entered into the rest of the post content. Ta-da! Linked list item!
This also works if you type in your own URL. For instance,
<a href="http://google.com">GOOGLE!!!</a>. This is a link to Google.
… will have its first line removed, the URL http://google.com passed into the custom field linked_list_url, and will have its first line removed to just end up with the text ‘This is a link to Google’. The text in the anchor (‘GOOGLE!!!’) will be ignored.
If you’d like to use this with the MarsEdit bookmarklet, you can customise the Attribution preference as follows:
It’s very important to note three requirements: (i) the anchor tag must be in the first line of the post, (ii) the tag must be the only element on that line, and (iii) the line must end in a period. (This is the same syntax as the ‘Press This’ bookmarklet, as at WordPress 3.1.)
Any text in the anchor will be ignored, and the entire first line will be discarded. So be careful if you actually do intend to post a URL with a period at the end!
Integration with other plugins
DFLL integrates with a couple of other plugins, but you have to use my modified versions. I think I sent pull requests on GitHub to the creators, but I don’t recall hearing back, so ah well. I’m sure they have good reasons. Use at your own peril!
Twitter Tools: my fork on GitHub, original here. With this, you can add a glyph in front of tweets that link to non-linked-list posts, like how Gruber does it for the DF Twitter account. In addition, you can also add a glyph or text (e.g. “Link:”) in front of linked list item tweets. Thanks to Ben Brooks for the suggestion on this one. (Note that Twitter Tools has its own tweet prefix, so your tweets will come out as something like
Glyph New Blog Post: Title Link. To get rid of the “New Blog Post:” bit, give this plugin a try.)
The latest version of this plugin is 2.5. You can search for “daring fireball” in your WordPress plugin search page, or get it from here or the WordPress plugins directory page. I’ve put it up on github, too.
Customising your theme
If you’re starting out on a new WordPress blog with the TwentyTen theme, you can download the custom child theme. Just activate it and it’ll work out of the box.
If you’d like to find out how to customise the theme on your own, you can refer to this post, or get in touch.
RSS feed functionality was adapted from Jonathan Penn’s WordPress Linked List plugin, and the custom field functionality was inspired by and adapted from Justin Blanton’s CF setter plugin. Thanks a lot!
Do you have questions or suggestions? Look me up on Twitter. If you use this plugin, I’d love it if you could send me a link to your website, too! After all, I made this plugin because I love perusing linkblogs.
Donations are welcome!