• Resolved guyblueboat1

    (@guyblueboat1)


    Hi there,

    I’m just integrating your plugin with a custom theme I’m developing, but I was struggling to understand how I could render the media player by itself, not attaching it to the content or excerpt functions.

    In the context of a single post, consider the following code: (I came across the ssp_media_player filter in your docs, am I on the right track?)

    ssp_media_player();
    the_title( '<h1 class="entry-title">', '</h1>' );
    the_content();
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jonathan Bossenger

    (@psykro)

    Hi @guyblueboat1

    There is no helper function that would allow you to only load the player.

    What you would need to do is use the global instance of the $ss_podcasting front end controller, and call the load_media_player() method, with the $file, $episode_id and $player_style variables.

    Take a look at the player shortcode code for how we do this for the player shortcode

    Thread Starter guyblueboat1

    (@guyblueboat1)

    Thanks @psykro

    That shortcode is a great reference, should have no problem implementing this feature now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Render just media player’ is closed to new replies.