Thread Starter
bexhu
(@bexhu)
You can use the WordPress core functions to create these layouts.
See functions like get_post_meta and add_shortcode.
Thank You, Jory
You’ll also need functions to convert a number to a time length.
Something I quickly found online: https://www.hashbangcode.com/article/converting-and-decimal-time-php
I’ll check
btw, want to share how I solved
function duration($secDuration){
$seconds = intval($secDuration%60);
$totalMinutes = intval($secDuration/60);
$minutes = $totalMinutes%60;
$hours = intval($totalMinutes/60);
$timerFormat = "$hours:$minutes:$seconds";
return $timerFormat;
}
On Pods {@duration,timerFormat}
Cheers, Bexhu 🙂