Audio Player
[resolved] Can't build shortcode links for pages after WP 3.4 (4 posts)

  1. freeweaver
    Posted 3 years ago #

    I upgraded my sites to WordPress 3.4 over the weekend, and now I can't build Audio Player links from the Media Library anymore.
    I can put in the shortcode manually and everything else works, but no links. Any ideas?


  2. iagosrl
    Posted 3 years ago #

    Hi, I have the same problem but looking in Google and found a solution (that can help the developer) on other post on this forum.

    User 'mslocum' recommends do a change in the source code:

    In audio-player's plugin files, edit audio-player.php. Line 684: change value to data-link-url

    doryphores: I expect this can helps you to solve the fix the problem in the code (maybe needs some compability aditions to continue being compatible with previous wordpress versions). And thanks very much for the good work, the plugin works fine! (solving this, of course ;-)

  3. freeweaver
    Posted 3 years ago #

    Yep, that absolutely worked. Thanks!

  4. ftaveira
    Posted 2 years ago #

    audio-player.php. Line 684

    $form_fields["url"]["html"] .= "<button type='button' class='button urlaudioplayer audio-player-" . $post->ID . "' value='[audio:" . attribute_escape($file) . "]' title='[audio:" . attribute_escape($file) . "]'>Audio Player</button>";

    To this:

    $form_fields["url"]["html"] .= "<button type='button' class='button urlaudioplayer audio-player-" . $post->ID . "' data-link-url='[audio:" . attribute_escape($file) . "]' title='[audio:" . attribute_escape($file) . "]'>Audio Player</button>";

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic