WordPress.org

Ready to get started?Download WordPress

Forums

Beatport Discography shortcode
[resolved] Shortcode for WP text editor please (5 posts)

  1. virtuassist
    Member
    Posted 6 months ago #

    Hello,

    I always disable the visual editor in WP because it messes up my code, I only use the text editor for more pure code in the page.
    Now I had to enable the visual editor to use the button of your plugin.
    It worked (on WP 3.8.1) but WP also added unwanted span class crap in my page.

    So.... Could you please provide the details of the shortcode? So I'll be able to manually adjust the short code afterwards? Suppose I want to change from Artist to Release (step 1) later, and I can look up here what part of the shortcode I need to change, or add, or delete, that would be great because I wouldn't be forced to use the visual editor! Just a list of attributes for the shortcode basically.

    Thanks!

    https://wordpress.org/plugins/beatport-discography-shortcode/

  2. Federico Giust
    Member
    Plugin Author

    Posted 6 months ago #

    Hello,

    This is the full list of parameters in the existing shortcode

    • feed: string with value "artist", "label" or "id"
    • artist: string
    • label: string
    • id: number
    • items: string with value "release" or "track"
    • buylink: string with values "on" or "off"

    For example, if you want to get an Artist releases feed

    [beatport_discography_sc feed="artist" artist="Richie Hawtin" items="release" buylink="on"]

    If you want to get an artist track feed

    [beatport_discography_sc feed="artist" artist="Richie Hawtin" items="track" buylink="on"]

    Hope this helps.

  3. virtuassist
    Member
    Posted 6 months ago #

    Thank you so much, I'll try that! For now I've solved it like this: embedded the player with a track with your shortcode, added an image for a Release and a Chart, the image links to the Beatport page in an iframe... not very elegant... It's on http://www.themusicessentials.com/radio-shows/home-grown-talent/dirty-code

    Thanks again for this info, I'll let you know about the results.

  4. virtuassist
    Member
    Posted 6 months ago #

    Well, it works for a release (example: http://www.beatport.com/release/regression/931372) but doesn't show an embedded player on the WP website. It opens in a new browser tab instead. I used shortcode [beatport_discography_sc feed="id" id="931372" items="release" buylink="on"] for this.

    And it gives an error for a chart (example: http://www.beatport.com/charts/10-must-hear-club-hits-tracks-week-37/214027).

    But I think that is because Beatport itself doesn't offer embedding for releases and charts, and not because of your shortcode.

    Thank you for your reply anyway!

  5. Federico Giust
    Member
    Plugin Author

    Posted 6 months ago #

    The plugin doesn't support charts, at least not yet.

    The sound player was removed because beatport removed the samples from the api.

Reply

You must log in to post.

About this Plugin

About this Topic