• Resolved jberg1

    (@jberg1)


    Hello. I upgraded to v1.8.8 and suddenly all my audio stopped working. I use custom fields to define the mp3 track and then call that track in the post with the shortcode.

    custom field
    name: 1 mp3 ; value: Song Title@audio/file/location.mp3
    then use shortcode
    [mp3-jplayer track="1" width="550px" list="n" style="text nolistbutton" dload="y" pn="n" stop="n"]

    After upgrade all I see is a 1 in the song title, and it doesn’t play any file (just says connecting). Is there a new way to do this with custom fields in the new version? I downgraded back to v1.8.7 for now. Hoping I don’t need to go back and rewrite all my shortcodes.

    Thanks for any help.

    https://wordpress.org/plugins/mp3-jplayer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author simon.ward

    (@simonward-1)

    Hello,

    took a sec to realise what was going on here, explanation as to why it used to work, why it bugged, and how to fix it as follows:

    Firstly there are 2 errors in your shortcode –

    1) The correct param name is tracks (with an ‘s’) not track.

    2) Playlist players have never supported picking-off of the custom fields by using a number (this is a feature of single file players only).

    The reason it used to work for you is because of that error in the tracks parameter name. The param was ignored so you basically weren’t specifying any tracks. Therefore asking the player to look in the custom fields to try find something to play.

    Last update I made it so it doesn’t matter whether you use track or tracks in any of the shortcodes (it was fussy and annoying that the singles and playlisters had a different param name) so suddenly your ‘track’ parameter came to life and gave the shortcode a track (an unplayable one!).

    To fix it simply remove the ‘track’ (or ‘tracks’) param completely from your shortcodes (or you could leave it blank eg. track=””), it shouldn’t really be there if you intend to pick up custom fields using the playlisters.

    Simon

    Thread Starter jberg1

    (@jberg1)

    Ah! My typo is revealed.
    I converted from a Playlist player to a single file player a while back when setting them up in a custom post type. Thought I was doing it right.. guess not.

    I will update my shortcodes.
    Thanks for your response and help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Fields?’ is closed to new replies.