Instructions
On Using Last.fm Artists
You can either use the widget or the following methods to use Last.fm Artists.
Put Last.fm Artists in you Post/Page
If you want to put it in a post or page, use (minus the spaces):
{ lastfmartists }
and this will display your settings. If you want to override those settings, use (minus the spaces):
{ lastfmartists | number | time | size | type }
You can leave off any subsequent setting that you don’t want to change. For example: if you just want to change the number, only go up to the number setting. However, if you want to change the size, then you must also enter the number and time. If you want to change the time, you must also enter the number. The option type refers to whether the image is wide or square. Square is the default setting.
Put Last.fm Artists in you Design
For a non-widget display, put the code
<?php lastfmartists_display(); ?>
anywhere in your template and it will show your settings. If you want to override the settings on the setting page, use
<?php
$args = array(
'time' => 'the time period',
'number' => 'number of images',
'size' => 'size of images'
'type' => 'wide or square'
'display' => 'yes or no'
);
lastfmartists_display($args);
?>
in your template. The time has to be either weekly, 3month, 6month, 12month, overall, recent, or loved or else overall will display by default. The display option tells the plugin whether to display the artist’s information or not. You can leave any of the arguments out that you don’t want to change from you overall settings. For example, if you want the size and display to be the same, use:
<?php
$args = array(
'time' => 'the time period',
'number' => 'number of images'
'type' => 'wide or square'
);
lastfmartists_display($args);
?>
and the size and type argument will match what you set in your settings page.
Styling Last.fm Artists
CSS can now be directly edited in the plugin admin page. You can select from several pre-built styles or edit your own and will show up as custom in the menu later on. If you want to permanently save your own style, copy and paste the style into a blank file and save it something.css with something being whatever you want it to be called. They you can just upload the style into the plugin directory and it will appear in the select menu automatically.