Wordpress plugin that adds a shortcode on posts or pages to read the artist discography using the Beatport API.
WordPress plugin that adds a shortcode on posts or pages to read the artist discography using the Beatport API.
This plugin gets the feed on request and on the fly, so there is no need to save in database or do any updates.
As soon as a release is out on beatport it will be on the list.
There are three different types of feed:
– Artist Feed
– You can get list of tracks or releases
– If getting list of tracks, you have the option to enable/disable the sound player.
– Artist Bio
– Label Feed
– You can get list of tracks or releases
– If getting list of tracks, you have the option to enable/disable the sound player.
– Release Details Feed
– Gets a detailed view of a release by ID. You can find the release id on beatport.com in the URL.
For example: If you go to beatport and click on a release, the url on your browser will be something like this http://www.beatport.com/release/sonntag/1092381. Where the ID is the numbers at the end of it.
It’s very easy to use:
Done.
This version will get a JSON object with the following information
This will be displayed on on or two columns depending on the page width.
This section describes how to install the plugin and get it working.
e.g.
plugin-name.php
to the /wp-content/plugins/
directoryAfter the plugin is active, there will be a new icon on the text editor toolbar. So if you go to add a new page or post you will see the beatport green logo icon. If you click on it a new modal window will open asking for one of the following:
* Artist (Default)
* Label
* Release (By Id)
* Artist Name (Default)
* Label Name
* Release Id
* Releases (Default)
* Tracks
* Artist Bio (Only available when fetching Artist feed)
* Enable/Disable Sound Player (Only available on tracks catalogue, it will play the sample when clicking on the track cover)
* Enable/Disable buy on beatport link
One option of each group is required.
This will add a shortcode like this:
[beatport_discography_sc feed=”artist” artist=”Richie Hawtin” items=”track” soundplayer=”on” buylink=”on”]
Shortcodes parameters
* feed: string with value “artist”, “label” or “id”
* artist: string in this format “Matthias+Tanzmann”
* label: string in this format “Moon+Harbour+Recordings”
* id: the release id as it appears on beatport url (for example: http://www.beatport.com/track/secret-effect-original-mix/4773933 the id would be 4773933)
* items: string with value “release” or “track”
* soundplayer: string with values “on” or “off”
* buylink: string with values “on” or “off”
There is a button to test the shortcode before inserting, this will show you a short part of the JSON file.
After you filled out the form, click on insert shortcode and update the page/post.