public static function get_duration_post($post_id = false) { global $post, $fv_fp; $post_id = $post_id ? $post_id : $post->ID; $content = false; $objPost = get_post($post_id); if ($aVideos = FV_Player_Checker::get_videos($objPost->post_content)) { if ($sDuration = flowplayer::get_duration($post_id, $aVideos[0])) { $content = $sDuration; } } return $content; }