简体   繁体   中英

Blogger Popular Post Widget by Label

it works fine but not the way I want it

This code is based on label but according to post upload, but what I want is popular post based on label not based on upload, what's with this code?

-- Widget Add

<script type='text/javascript'>
    var numposts = 6;
    var showpostthumbnails = true;
    var displaymore = false;
    var displayseparator = false;
    var showcommentnum = false;
    var showpostdate = false;
    var showpostsummary = false;
    var numchars = 0;
</script>

<script type="text/javascript" src="/feeds/posts/default/-/LABEL?orderby=updated&alt=json-in-script&callback=labelthumbs"></script>
<script src="/feeds/posts/summary/-/LABEL?max-results=6&alt=json-in-script&callback=recentpostslist"></script>

As far as I know, labels show posts from new all the way to the oldest in their respective category, so I don't think you can show popular posts through labels in the way you're trying to show. I think you would need a separate script with custom functions to do it.

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