'Music Summary', 'post_type' => 'page', 'post_content' => '[lfm_userinfo]Edit this page to change this introduction[/lfm_userinfo]

'. '[lfm_rtracks_summary]

[lfm_artists_summary]

[lfm_albums_summary]

'. '[lfm_tracks_summary]', 'post_status' => 'publish', ); // Insert the post into the database wp_insert_post( $my_post ); update_option('lfm_create_summary_page',false); } if ( (bool) get_option('lfm_create_rtracks_page') ) { // Create post object $my_post = array( 'post_title' => 'My Recent Tracks', 'post_type' => 'page', 'post_content' => '[lfm_rtracks_page]', 'post_status' => 'publish', ); // Insert the post into the database wp_insert_post( $my_post ); update_option('lfm_create_rtracks_page',false); } if ( (bool) get_option('lfm_create_artists_page') ) { // Create post object $my_post = array( 'post_title' => 'My Top Artists', 'post_type' => 'page', 'post_content' => '[lfm_artists_page]', 'post_status' => 'publish', ); // Insert the post into the database wp_insert_post( $my_post ); update_option('lfm_create_artists_page',false); } if ( (bool) get_option('lfm_create_albums_page') ) { // Create post object $my_post = array( 'post_title' => 'My Top Albums', 'post_type' => 'page', 'post_content' => '[lfm_albums_page]', 'post_status' => 'publish', ); // Insert the post into the database wp_insert_post( $my_post ); update_option('lfm_create_albums_page',false); } if ( (bool) get_option('lfm_create_tracks_page') ) { // Create post object $my_post = array( 'post_title' => 'My Top Tracks', 'post_type' => 'page', 'post_content' => '[lfm_tracks_page]', 'post_status' => 'publish', ); // Insert the post into the database wp_insert_post( $my_post ); update_option('lfm_create_tracks_page',false); } } function register_lfm_settings() { //register our settings register_setting( 'lfm-settings-group', 'lfm_apikey' ); register_setting( 'lfm-settings-group', 'lfm_username' ); register_setting( 'lfm-settings-group', 'lfm_summ_limit' ); register_setting( 'lfm-settings-group', 'lfm_page_limit' ); register_setting( 'lfm-settings-group', 'lfm_create_summary_page' ); register_setting( 'lfm-settings-group', 'lfm_create_rtracks_page' ); register_setting( 'lfm-settings-group', 'lfm_create_artists_page' ); register_setting( 'lfm-settings-group', 'lfm_create_albums_page' ); register_setting( 'lfm-settings-group', 'lfm_create_tracks_page' ); } function lfm_settings_page() { if ( get_option('lfm_summ_limit') == null ) { update_option('lfm_summ_limit',5); } if ( get_option('lfm_page_limit') == null ) { update_option('lfm_page_limit',20); } ?>

Adapa's Last.FM Plugin for WordPress

Here you can configure various settings related to Adapa's Last.FM Plugin for WordPress.

General Settings

API Key: If you do not yet have an API key, you can easily sign up for one here.
Username: This is the same username that you would use to sign in to the Last.FM website, or your media player that scrobbles to Last.FM.

Shortcode Settings

For more information on using shortcodes, see here.

Default limit for summary: By setting this limit, it will control how many results are shown when using summary shortcodes. Remember, you can override the default value when using the shortcode.
Default limit for page: By setting this limit, it will control how many results are shown when using page shortcodes. Remember, you can override the default value when using the shortcode.

Last.FM Pages

This plugin can auto-generate pages with your Last.FM information if you wish. You will be free to edit these pages under the pages tab to your left at a later time, for example, to change the order that they appear in your navigation menu, or to change their hierarchy.

Widgets

This plugin also includes a sidebar widget. You can enable widgets on the Widgets page under the Appearance menu. This plugin supports multiple instances of the same widget, and therefore, you could have multiple instances showing links and currently playing tracks for multiple users. By default, if you do not specify a username, the widget will use the username you've specified above.