How to Fix a Broken Embedded Flickr Album

I recently had need to embed a Flickr album, as I’ve done many times before. When I published the article, however, the album was broken and only showed a single image. Odd, sure, but I figured I had just copied the wrong embed code; an hour later and I was fairly certain I hadn’t.

The Problem

What I wanted was a gallery that showed all the photos in the Flickr album in order, with left and right arrow-buttons for navigation. Something like this:

Kew Gardens & Science Museum

Looks great, simple to use and what I’ve always had when using the Flickr embed codes in the past. The problem, though, was that instead of a nice gallery I just had this:

Kew Gardens & Science Museum

Looks similar, but it’s just a static image linked to the album page on my Flickr profile; there’s no way to scroll or navigate through the photos. Weird right! A few hours Googling around the subject later and the bad news is that the issue is frequently encountered, but not consistent, so doesn’t appear to be considered as a bug. The good news, though, is that you can manually force an embed code to behave in the ‘correct’ way, you just need to know how.

How to Fix It

Full thanks should be directed at Flickr user studyabroadwmu who posted the missing piece to the puzzle in a Flickr support thread last year.

The trick is noticing the seemingly innocuous difference in the anchor tag of the embed code generated for the two albums above:

<a title="Kew Gardens & Science Museum" href="https://www.flickr.com/photos/161720506@N06/albums/72157669217526758" data-flickr-embed="true" data-footer="true">

As opposed to:

<a title="Kew Gardens & Science Museum" href="https://www.flickr.com/gp/161720506@N06/y5R7Wu" data-flickr-embed="true" data-footer="true">

Why the bottom embed code was generated using some kind of URL shortening is not clear, but that’s the root of the issue. Want to fix it, just open the album in Flickr and take a look at the URL in the browser bar, which in this case would be:

https://www.flickr.com/photos/161720506@N06/sets/72157669217526758/

Now copy that and paste it over the value of the href attribute and, hey presto, you should have a working embedded gallery once again!

Autumn Colours at Kew Gardens

Kew Gardens & Science Museum

What’s this, a new article? Containing a new Flickr album? Well, who would have thought!

So yes, I’m back, hopefully with some more frequent updates (at long last) and definitely with quite a bit more photography related posts. Life has gone through some fairly big changes since my last post back in February, big enough to warrant their own post at some point. The brief version is that I’m now unemployed and living in London; exciting times!

That has meant time to finally sit down and begin working through the backlog of photographs. It has also meant a fiber internet connection! I’d hoped to have started publishing albums again as soon as we were connected, and pretty much had the above ready to go, but then I hit a bump in the road. Flickr has decided that my log-in details are no longer correct and Yahoo has deleted my associated email account. It doesn’t seem to matter that I still have access to the backup email account, the linked mobile phone or that I could provide private information on the account, after a protracted fight with Yahoo customer support I was left with two options: delete the original account or ignore it. The former sounded appealing, but a quirk of the Flickr back-end means that deleting the account doesn’t free up the username or URL, the two elements I most want…

So, whilst theAdhocracy on Flickr will live on, it will have to do so on a new profile, with a new name: theAdhocracyUK. I still hold out some hope that the recent acquisition of Flickr by SmugMug may allow greater flexibility in the future, but until then I invite you to follow the new me. As with my last outing on the platform, any images predominantly features friends/family (you know, memory shots rather than composed “photographs”) will only be visible if you’re following me and have been approved.

I’ve re-uploaded the original three albums, even taking the opportunity to add better captions and tweak a few of the exposures along the way. With that all (finally) complete, I’m back to where I thought I was two months ago and can begin sharing some new photos. So, with that said, up top I’ve uploaded a few shots from our trip to London last October.

We came across to London primarily to visit Kew Gardens with Alison’s parents, which was my first time to the area. To say we enjoyed it would be an understatement; in fact, we recently became members! Despite being mid-autumn, the beds were in full flower and offset beautifully against the turning leaves, plus the Hive sculpture (well pictured above) was fascinating. It was a great day out and a very fun visit.

The rest of the photos were taken at the Science Museum in South Kensington, predominantly in an exhibit they were running at the time on Asia/India. It was both wonderfully put together and extremely informative, plus the general design of the museum really impressed me. Overall then, a very successful weekend and I’m glad to finally be able to share it; expect more to come to Flickr soon (plus 500px and Instagram).