Archive for November, 2009

WordPress and Captions II

A few months ago, I complained about the image caption system WordPress implemented in regards to making alt text the same as the caption for any image inserted. I am now back for round two of complaints!

Last night, I encountered a problem. Whenever I tried to insert a hyperlink into text contained in an image caption, it disappeared when I posted or edited the entry, or when I switched to HTML view. I had realised that WordPress does not allow you to insert hyperlinks into captions! Although this is bothersome, it is fairly easy to work around.

The following is an example of what you might see in the HTML view if you use WordPress’s “insert image” feature and add a caption (note that I had to replace square brackets with curly brackets):

{caption id="attachment_000" align="aligncenter" width="100" caption="This is the caption below the image"}<img title="Further information" src="http://domain.com/image.png" alt="A description of the image" width="100" height="100" />{/caption}

When WordPress formats like this, it is impossible to insert hyperlinks into captions. There is quite a simple fix, however, which involves looking at the actual outputted HTML in the posted/previewed page’s source and manually coding the image and its caption:

<div id="attachment_000" class="wp-caption aligncenter" style="width: 100px;"><img class="size-full aligncenter" title="Further information or description" src="http://domain.com/image.png" alt="A description of the image" width="100" height="100" />
<p class="wp-caption-text">This is the caption for the image. <a href="http://domain.com">Look, a hyperlink!</a>.</p></div>

Pretty simple, but I do wonder why WordPress doesn’t allow you to insert a simple hyperlink into a caption. I mean, really…

Metcards I: Introduction

Here in Melbourne, a “contactless smartcard” ticketing system has just been introduced1, which will soon replace out old ticketing system for trams, trains, and buses. The new system is myki; the old system is Metcard. Metcard lasted here for about ten years, and I’ve collected literally hundreds, or even thousands, of them over that period (see below). It’s kind of sad to think that when I actually start using myki, I’ll only have one which will last indefinitely, and I therefore will no longer be able to collect.

In memoriam of Metcard, I’ll be posting a collection of various Metcards I’ve collected over the years, starting with the following. This is part one of my collection.

Yellow, red, and blue Metcard from 1998. A Metcard is a rectangular cardboard ticket.

This is the original generic design from 1998. I remember when Metcards were introduced, I was all excited about getting to press the buttons on the Metcard vending machine.

Blue metcard with light blue spots

This is the current generic design. I can find ones dating back to 2002, so I assume that's when they were introduced.

Metcard with drawings of futuristic trams and Flinders Street Station

Metcards are often used to promote events or to celebrate an occasion. This is one of a series of twelve that were used in early 2000. The rest of the set will be showcased in the next instalment. Those vehicles are (futuristic) trams, and the big building at the back is Flinders Street Station.

A box of hundreds of Metcards

This is my collection. The thought of counting them all is too confronting for me to even try, but I guess I could get a vague idea with the use of a ruler and some basic maths.


  1. The whole of Victoria will be using it, and I know that one other city introduced it quite a while ago, but at Melbourne train stations, it has only been active since last week. []