Error getting the duration with powerpress_get_enclosure_data() function
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Error getting the duration with powerpress_get_enclosure_data() function’ is closed to new replies.