WordPress.org

Ready to get started?Download WordPress

Plugin Directory

WordPress Last.fm Charts

Shortcodes to display charts of Last.fm data for a particular user.

Usage

In a post or page, use the [wp_lastfm_charts_top_artists] or [wp_lastfm_charts_top_tracks] shortcode. Specify the user_name parameter, using your Last.fm user name. Specify a time range with the period parameter, e.g., 12month. Specify a chart type with chart_type, e.g., horizbar or pie.

Some examples:

[wp_lastfm_charts_top_artists user_name="cheshire137" period="12month" chart_type="horizbar"]
[wp_lastfm_charts_top_artists user_name="cheshire137" period="12month" chart_type="pie"]
[wp_lastfm_charts_top_tracks user_name="cheshire137" period="12month" chart_type="horizbar"]
[wp_lastfm_charts_top_tracks user_name="cheshire137" period="12month" chart_type="pie"]

Other parameters include chart_color, chart_fade_color, width, height,

colors

, limit, title, data_table_css, and image_alt.

chart_color

and chart_fade_color refer to the background color of the chart and should be hex color codes without the #. They default to FFFFFF (white).

limit

refers to the number of artists or tracks to display in the chart. It defaults to 12.

colors

should be a comma-separated list of hex color codes without the #.

period

should be one of overall, 7day, 1month, 3month, 6month, or

12month

.

Last Updated: 2013-10-12
Downloads: 242

Ratings

0 stars
0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.