The custom fields is serialized and is in a repeater. an example of id is alb_tracklist_0_stream_lenght but I doubt you can use that since its serialized.
I am meaning the total album duration that is calculated from the individual track durations. It's the track duration that would be in the repeater wouldn't it?
the total track duration is not a custom fields, its a Javascript calculation of all the tracks duration output. You can see the JS code in /public/js/iron-audioplayer/iron-audioplayer.js
OK thanks. I have managed a workaround by just inserting a second player shortcode and then just hiding everything via either the shortcode or CSS. The below works, is there a better way?
Hi there - if I want to display only the duration of the album in a different place on the page, is there a shortcode to display just that on its own?
Thanks
Julian
Hi,
unfortunately, we dont have this option built-in with our plugin.
Thanks,
Max from the Sonaar.io Crew
OK. Are you able to tell me what the key is for this in case I can find a way to display it?
Thanks
The custom fields is serialized and is in a repeater. an example of id is alb_tracklist_0_stream_lenght but I doubt you can use that since its serialized.
Thanks,
Max from the Sonaar.io Crew
I am meaning the total album duration that is calculated from the individual track durations. It's the track duration that would be in the repeater wouldn't it?
Hi,
the total track duration is not a custom fields, its a Javascript calculation of all the tracks duration output. You can see the JS code in /public/js/iron-audioplayer/iron-audioplayer.js
see screenshot: https://drops.sonaar.io/i/IKggIu
Thanks,
Max from the Sonaar.io Crew
OK thanks. I have managed a workaround by just inserting a second player shortcode and then just hiding everything via either the shortcode or CSS. The below works, is there a better way?
.tas-album-duration .srp_control_box {
display: none;
}
.tas-album-duration .track-title {
display: none;
}
.srp_player_boxed.srp_player_grid {
padding: 0px;
}
[sonaar_audioplayer
player_layout="skin_boxed_tracklist"
hide_artwork="true"
show_playlist="false"
show_track_market="false"
show_album_market="false"
hide_progressbar="true"
hide_track_title="true"
hide_album_title="true"
show_volume_bt="false"
show_meta_duration="true"]
[/sonaar_audioplayer]
I think thats the only way atm
Thanks,
Max from the Sonaar.io Crew
OK thanks.