Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    The Podcast Player block was built for the block editor, so it does not rely on a shortcode and fully relies on the editor to manage each attribute.

    If you wanted to embed a specific podcast with code, you would have to rebuild your own function that pulls in the player. Something like this may work for you:

    https://gist.github.com/jeherve/ec1293761c71f56d4362e2260fbe810f

    If you don’t feel comfortable editing PHP files or if you need more help with customizing the output of the player, I would recommend hiring a WordPress professional that can help you with this. You can find WordPress developers for hire here:
    https://jobs.wordpress.net/
    https://jetpack.pro/

    Thread Starter asafm7

    (@asafm7)

    Exactly what I was looking for, and works great.

    Thank you!

    (making it available in the future as a shortcode will be great I think)

    Thread Starter asafm7

    (@asafm7)

    Just one question – if I call it several times in a page, is there a wat to only call jetpack_require_lib once?

    Or maybe it doesn’t have a performance effect?

    Thanks

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    if I call it several times in a page, is there a wat to only call jetpack_require_lib once?

    It’s already only called if needed, so no worries there.

    making it available in the future as a shortcode will be great I think

    That is not something that’s on our roadmap right now, but I’ll keep it in mind for the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Embedding the podcast player with code’ is closed to new replies.