This script allows any site to embed your Tumblr blog using PHP code that reads Tumblr’s JSON output.
You can see an application of this exact script on my blog page.
My Blog Page however remains unstyled till I get time to do the CSS. But all the functionality is either there or incredibly easy to implement.

This script was updated to support the new Tumblr API. It’s cleaner as well.

I created this script because I found that most of the existing similar scripts each were broken in some part and were missing a lot of functionality I was looking for. These were all great because I could see what worked where and why, and then write my code accordingly.

The script does a few things I’m proud of:

  • It integrates the Tumblr top-bar iFrame so that visitors can follow your Tumblr feed, and so you can easily access Tumblr settings
  • It lets you have control the starting post and the number of posts to show. It will also accordingly display the ‘Older Posts’ or ‘Newer Post’ links to the user
  • It checks to see if Tumblr’s JSON is actually working and provides an error if it’s down, so that you don’t get a blank page
  • It’s easily customizable using HTML markup instead of javascript or PHP like some of the others I saw
  • Atleast to me, it seems more user friendly than a lot of the scripts I tried to use to achieve the same thing






One Response to this post

Show Comments

Hide Comments

  1. Filipe

    A great feature for sure.

    It helped me a lot, since i was a bit stuck with the tumblr API.

    There is a small error on line 134 on the link output.
    It’s has written (‘urk’, $inf), instead of (‘url’, $inf).

    I also made other changes to fit my wordpress site.

    Thanks, keep the good work

Leave a comment! :-)