• Resolved snappysites

    (@snappysites)


    Hi,

    I am trying to put the episode image elsewhere on my podcast page.

    Is there a shortcode to place it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    Hey, @snappysites!

    If you mean modifying your template PHP file, you can use the ssp_episode_image() function for it. If you mean using shortcode directly in your page editor, currently there is no shortcode for it.

    Please let me know if you need it and I can include such a possibility in our next releases.

    Best regards,
    Sergiy, development team.

    Thread Starter snappysites

    (@snappysites)

    Thank you for your reply. I am unable to get that to work. Do you have a usage example while in the loop?

    I have been using this as a workaround:

      <?php 
    $ssp_episode_image_id = get_post_meta(get_the_ID(), 'cover_image_id', true);
        $ssp_episode_image = wp_get_attachment_image_src($ssp_episode_image_id, "medium");
    ?>
        <img src="<?php echo $ssp_episode_image[0]; ?>">
    
    • This reply was modified 2 years ago by snappysites.
    • This reply was modified 2 years ago by snappysites. Reason: fixed some markup
    Plugin Author Serhiy Zakharchenko

    (@zahardoc)

    @snappysites

    Did you try it this way?

    <?php echo ssp_episode_image( get_the_ID(), 'medium' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get Podcast Image’ is closed to new replies.