Quick Flickr Widget: Empowered by Thickbox

Hey there! I'm currently working on a CLI tool to deploy WordPress apps to DigitalOcean. Check it out! It's free and open source.

Finally, version 1.2.4 is public! Can you belive this? I managed to get Thickbox running with the widget! No, it wasn’t that difficult at all. Here are the two tricks:

In the plugin init:

	$options = get_option("pluginname");
	if ($options["thickbox"] == "checked")
		add_action("wp_head", "pluginname_thickbox_inject", 10);

And the thickbox inject function:

function pluginname_thickbox_inject() {
    <link rel="stylesheet" href="<?= get_option("siteurl"); ?>/<?= WPINC; ?>/js/thickbox/thickbox.css" type="text/css" media="screen" />

    <script type="text/javascript">
    var tb_pathToImage = "<?= get_option("siteurl"); ?>/<?= WPINC; ?>/js/thickbox/loadingAnimation.gif";
    var tb_closeImage = "<?= get_option("siteurl"); ?>/<?= WPINC; ?>/js/thickbox/tb-close.png"


That’s all. Then use Thickbox the ordinary way you would. Oh and don’t forget to check out the Quick Flickr Widget page for more info on the plugin and once again thank you for all your feedback. It really helps a lot!

About the author

Konstantin Kovshenin

WordPress Core Contributor, ex-Automattician, public speaker and consultant, enjoying life in Moscow. I blog about tech, WordPress and DevOps.


  • Hi Konstantin,

    I've installed the new version but I'm getting an error:

    "Something went wrong with the Flickr feed! Please check your configuration and make sure that the Flickr username or RSS feed exists"

    I've tried to use the screenname instead of the RSS feed, but it doesn't work either, with a different error message (can't find username).

    Any ideas what might be wrong? I've checked all the flickr stuff and it's okay.


    • The feed is valid, the screenname is valid too (both worked for me). Strange. Say, Chirs, which version worked before it stopped? Was it 1.2.2 or 1.2.1 or even prior? I need to know exactly, cause there were major changes. And also, I believe your WordPress version is 2.7.1, right? Your PHP version might help.


    • That's a difficult question, Konstantin, since I wasn't taking an interest until it broke. I guess it was 1.2.

      Yes, we're running WordPress 2.7.1 and the PHP version is 4.3.6.

      Hope this helps.


  • Hi there — I've been trying all the flickr widgets for wordpress out there and have decided that yours is exactly what I need… Now, one thing I've noticed, and I'm wondering if I can add some code to fix this: When set to Random, the widget still only displays a random photo from the last 20 or so photos from my flickr photostream. Is there any way to broaden that selection? Thanks!

    • Let me clarify further: I am only displaying one random photo at a time in the sidebar, but I would like the random photo to come from my entire photostream (or at the very least more than 20 ;) I've edited the plugin, changing '20' to '100' but that didn't seem to do anything. thanks again.

    • Hey T Grace. This question has been asked. It's just that the Flickr Feed Services provide the last 20 photos available in the stream. Anyways, I'm thinking about extending that through virtual pagination, and it seems that it's kind of possible, but simply modifying the 20 to 100 will not do the job.

      Stay tuned for the update, I'll try to include this feature. Oh and by the way, please post your suggestions to the Quick Flickr Widget plugin page over here with all the rest: https://konstantin.blog/396