Filtering posts by tag on Tumblr page?

杀马特。学长 韩版系。学妹 提交于 2019-12-04 20:17:50

Definitely possible but would involve using Tumblr's API. Below is an example using the JSON API and jQuery...

$.getJSON("http://{Name}.tumblr.com/api/read/json?tagged='[WHATEVER TAG YOU SPECIFY]'&callback=?", function(data) {     
    // Rest of code here...         
});

The {Name} tag automatically places the tumblr's name into the API URL. From here you would likely use jQuery to append to the resultant post data to somewhere on your page like a "Featured Posts" div.

http://www.tumblr.com/docs/en/api

http://api.jquery.com/jQuery.getJSON/

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!