Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm the developer of PHP Lastfm API so I'll point you in the right direction with that bit. </p> <p>Take a look at this page in the documentation for a quick walkthrough with how to get going using the API. You only need to use unauthenticated methods you you dont need to read all of step 4, just the first section.</p> <p><a href="http://sourceforge.net/apps/mediawiki/phplastfmapi/index.php?title=Usage" rel="nofollow noreferrer">http://sourceforge.net/apps/mediawiki/phplastfmapi/index.php?title=Usage</a></p> <p>You now need to call the getTopArtists method in the user package to get back an array with a list of your top artists. Take a look at the example included in the PHP Lastfm API download to see what I mean by this.</p> <p><a href="http://www.matto1990.com/lastfm_protocol/phpdoc/0.5/apicalls/lastfmApiUser.html#methodgetTopArtists" rel="nofollow noreferrer">http://www.matto1990.com/lastfm_protocol/phpdoc/0.5/apicalls/lastfmApiUser.html#methodgetTopArtists</a></p> <p>When you've got the array you can just loop through it and output the HTML you need.</p> <p>I cant help too much with the Wordpress stuff but I think you could do some magic with a single page and short codes:</p> <p><a href="http://codex.wordpress.org/Shortcode_API" rel="nofollow noreferrer">http://codex.wordpress.org/Shortcode_API</a></p> <p>Hope this helps you out a bit, and dont forget to post in the PHP Lastfm API group with a link to your project so I can add it to the list on the project website:</p> <p><a href="http://www.last.fm/group/PHP+Last.fm+API/forum/105368/_/545041" rel="nofollow noreferrer">http://www.last.fm/group/PHP+Last.fm+API/forum/105368/_/545041</a></p> <p>Matt Oakes</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload