How can I link to the latest post on Tumblr?

How to display a link to my latest Tumblr post using Javascript?

  • I am looking for some help and would be VERY grateful for it. I would like to use Javascript to display a link to my latest Tumblr post. For example, it would be like: <a href="http://brianjsmith.tumblr.com/post/4486283258/welcome-to-my-tumblr">Read Post</a> As you can see in the above code, the link is to my latest post. However, the latest post is (of course) going to change.... I can't seem to find anything online (I've been searching Google for a few hours) and I have been trying to create my own code with Tumblr's API settings with no luck. I know I asked a question similar to this for Twitter. Also help with getting it to execute, because apparently I can't seem to get that working either. And once again any help would be amazing!

  • Answer:

    i think this will get you what you need: $.getJSON('http://brianjsmith.tumblr.com/api/read/json?callback=?', function(response) { $('#myLink').attr('href',response.posts[0].url); }); edit: ok, forget what i had before. doesn't work for tumblr apparently. this does though.

BrianJ at Stack Overflow Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.