I was having trouble finding the code for the top posts widget by PostRank so I’ve included it, along with instructions, below:
- Go to PostRank and enter your RSS feed address into the Analyze box at the top of the site. You’ll likely get an error that this URL has never been entered before, just wait a few minutes for it to build an index and try again.
- On the Feed Detail page, click the RSS looking button on the right.
- Note the unique hash that pops up, circled above.
-
Go to the following URL, replacing {YOUR HASH} with your actual hash:
http://api.postrank.com/v2/feed/{YOUR HASH}/info?format=xml&appkey=postrank.com/example
- On the page that loads, note your unique feed id, which comes up right after your hash and before your URL.
- Use the following code, replacing {FEED ID} with your actual feed id, ‘year’ with the time period you would like (year, month, week, day), and 10 with the number of records to return:
</div>
Posted in
blogging,
PostRank,
scripts,
Web Widgets
Social