Quantcast
Channel: Active questions tagged feed - Stack Overflow
Viewing all articles
Browse latest Browse all 540

How to get last elements array in blogger feeds

$
0
0

I'm trying to grab the data feed on my blog with the help of blogger json. I made it with the help of javascript to retrieve the data, but I was confused about displaying the last data in an array of feeds.Whereas what is shown is all the arrays based on the labels in the feeds.

My question: how to show only the last data in an array in blogger feeds.

function series(e) {  for (var t = 0; t < e.feed.entry.length; t++) {    var r, l = e.feed.entry[t],      n = l.title.$t;    if (t == e.feed.entry.length) break;    for (var i = 0; i < l.link.length; i++)      if ("replies" == l.link[i].rel && "text/html" == l.link[i].type && (l.link[i].title, l.link[i].href), "alternate" == l.link[i].rel) {        r = l.link[i].href;        break      }    document.write('<a href="'+ r +'" title="'+ n +'">'+ n +"</a>")  }}
<script src="https://anitoki.malestea.com/feeds/posts/default/-/Horimiya?orderby=published&amp;alt=json-in-script&amp;callback=series&amp;max-results=999"></script>

Viewing all articles
Browse latest Browse all 540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>