• Hello,

    I am having a hard time with the [playlist] shortcode. The page that is linked to this post is showing a playlist that we have placed inside our content of the post/product. This is fine by itself but we wanted to change the position of that player to te right, outside of the content.

    I’ve found the playlist shortcode and placed it to the right, as we see on this page we see 2 playlists, one at the bottom and one on the right. The right one is placed there by the shortcode, why does this only work on certain posts/products and not to all of them?

    Maybe I need to try another solution so any tips are very welcome!

    • This topic was modified 3 years, 3 months ago by James Huff. Reason: redundant link removed

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Doesn’t work in what way? I’m only seeing one playlist and it appears to work fine.

    If the shortcode is placed outside of normal post content, but you see the shortcode itself instead of its expansion, it’s likely because where ever it was placed isn’t filtered through do_shortcode() like normal content is.

    If the shortcode is working inconsistently between products even though they had been placed in the same position, it could be the passed attributes were not formatted correctly in some instances.

    Thread Starter sefanjotwo

    (@sefanjotwo)

    In the link that was added you indeed see only one, that is fine but it is placed in the wrong place.

    Somehow the other link (that was important) in this post was removed but here it is https://roundmusic.nl/product/cort-kx-300-etched-black-red/
    Here we see two playlists, one further below and one on the right. The one on the right is there by shortcode, that is also the one we want.

    So the shortcode is working inconsistently although it is the same code for all the pages.

    Moderator bcworkz

    (@bcworkz)

    Same shortcode, sure, but different sound files, correct? Are you sure the attributes passed to the shortcode referencing the sound files are correct? Shortcode attribute syntax is very fussy. For one thing, don’t use single quotes, always use double quotes. Example: [the-shortcode attribute="value"]

    What happens when there are non-working shortcodes? Is anything at all visible? Or is the player there, but doesn’t play correctly?

    How did you get it onto the sidebar? Is it available in a dedicated widget? Or did you use a text or HTML widget?

    What plugin or theme is responsible for [playlist]? At first I thought it was there by default, but it’s nowhere to be found on my site.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[playlist] shortcode does not work’ is closed to new replies.