简体   繁体   中英

Specify posts to appear on Tumblr custom page

I want to create a custom page and I want posts with a couple of tags (eg Photoset and Gifset) to appear on it. I just learned that one way to do this is by using the Tumblr API. I'm not very knowledgeable in javascipt, can someone guide me through this? Thanks a lot.

I think you can filter post by tags.

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

I found this code here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM