• Resolved mark60480

    (@mark60480)


    I’ve been using the WordPress playlist shortcode in a page template that’s been working perfectly for at least 4 years. Recently, it has mysteriously stopped working. Here is the php code from the page template:

    <?php echo do_shortcode(‘[playlist artists="false" images="false" ids="328,329,326,324,327,325"]‘); ?>

    If you view the source code for the page, you will see all the necessary code is there on line 158, but its just not displaying properly.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have you already solved this? Because I see the generated source code, not the shortcode, so I can listen to the playlist.

    Thread Starter mark60480

    (@mark60480)

    Yes, the source code is there, but if you view the page only a single mp3 player appears and it does nothing. If you’re seeing a full playlist that is playable, is it possible to post a screenshot?

    Ah, now I see that I can see the player and the list of mp3 files, but the player does not recognize them. I can only play the files individually in the browser.

    Reason seems to be that the wp-playlist script is missing with you. You have a custom theme which is why it is difficult to judge at which point it hangs. With the twentytwentyone-theme the wp-playlist-script creates an output via mejs-audio which plays the files one after the other. This is completely missing with you. Either this is a setting in your theme or it is missing.

    You say this happens suddenly. What did you do before? Maybe you did an update of wordpress?

    Also a tip would be to deactivate all plugins and see if it works then. Because also plugins can suppress the loading of the necessary scripts.

    Thread Starter mark60480

    (@mark60480)

    It was working perfectly until very recently. I’m guess it was due to a WordPress update. The theme is a custom theme built on the Underscores starter theme. If you know of some script I can add to the theme that would make the player work again, that would be greatly appreciated.

    Thread Starter mark60480

    (@mark60480)

    I changed themes to twentytwentytwo and deactivated all plugins. Still not working.

    Thread Starter mark60480

    (@mark60480)

    Solved! Somehow one of the MP3s in the playlist disappeared from the Media Library. That caused the whole playlist to not display.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress playlist shortcode mysteriously stopped working’ is closed to new replies.