WP Manifestindependent plugin directory
manifest / media / artist-music-sync

Artist Music Sync

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/bosilu02/artist-music-sync/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

A WordPress plugin that fetches and displays music artist's albums and songs from Spotify and Deezer APIs.

Features

  • Automatically fetches album data from Spotify API
  • Retrieves song previews from Deezer API
  • Displays album artwork, track listings, and playable song previews
  • Responsive design that works on all devices
  • Configurable cache settings to reduce API calls
  • Manual refresh option to update music data
  • Easy shortcode implementation

Installation

  1. Upload the artist-music-sync folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Configure the plugin settings with your API credentials

Configuration

  1. Go to Settings > Artist Music Sync in your WordPress admin
  2. Enter your Spotify API credentials:
    • Client ID
    • Client Secret
    • Artist ID
  3. Enter your Deezer Artist ID
  4. Configure cache duration (in seconds)
  5. Save changes

Where to get API credentials

Spotify

  1. Go to Spotify Developer Dashboard
  2. Create a new application
  3. Get your Client ID and Client Secret
  4. For the Artist ID, go to the artist's Spotify page and get the ID from the URL:

Deezer

  1. For the Artist ID, go to the artist's Deezer page and get the ID from the URL:

Usage

Use the shortcode [artist_music_sync] in any post or page to display the latest albums and songs.

You can specify the number of albums to display:

[artist_music_sync limit="3"]

Customization

You can customize the appearance of the plugin by modifying the CSS files:

  • /assets/css/frontend.css: Front-end display styles
  • /assets/css/admin.css: Admin settings page styles

Troubleshooting

403 Forbidden Error from Deezer API

If you're experiencing issues with the Deezer API returning 403 errors:

  1. Make sure your website is publicly accessible (Deezer may block requests from localhost)
  2. The plugin implements several techniques to avoid this error, including using proper user agents and referrers

No Music Data Available

If you see "No music data available":

  1. Verify your API credentials are correct
  2. Confirm the artist IDs are correct
  3. Use the "Refresh Data Now" button on the settings page
  4. Check your server's error logs for more details

Support

If you have any questions or issues, please contact the plugin author.

License

This plugin is released under the GPLv2 or later license.