• frontpor

    (@frontpor)


    Hi guys,
    I’m using the function powerpress_get_enclosure_data(get_the_ID()) to get the duration of the episode, in a custom postype. But in the loop in some cases the value “duration” that’s return the array it’s empty.

    <?php
    $EpisodeData = powerpress_get_enclosure_data( get_the_ID() );
    $episodeDuration = explode(':', $EpisodeData['duration']);
    $episodeMin = $episodeDuration[1]; 
    
    if( !empty($EpisodeData['duration']) ) {
        echo $episodeMin;
    }
    ?>

    https://drop.frontporchsolutions.com/i/cWk2wG

    Any idea why happend this? Thanks in advance

    • This topic was modified 2 years ago by frontpor.
Viewing 1 replies (of 1 total)
  • Plugin Support Shawn

    (@shawnogordo)

    Which version of PowerPress are you using? An update was released in the last few days.

Viewing 1 replies (of 1 total)
  • The topic ‘Error getting the duration with powerpress_get_enclosure_data() function’ is closed to new replies.