Making audio playlist by getting page’s parent’s ID
Have you tried the following function: <?php get_post_ancestors( $post-ID ) ?> The last post in the returned array should be the highest level ancestor. This is from the Codex.
Have you tried the following function: <?php get_post_ancestors( $post-ID ) ?> The last post in the returned array should be the highest level ancestor. This is from the Codex.
How can I implement shortcode on click event
Trim Audio Files [closed]
Yes, the play event fires on the <audio> element, so you could target it eg $(‘audio.wp-audio-shortcode’).on(‘play’, function (event) { //etc });. A number of other events are also available, eg ended, playing, pause. Here’s some code I’m trialing at the moment that may help you (in “functions.php”): add_action( ‘wp_footer’, function () { ?> <script> jQuery(document).ready(function() … Read more
Reloading a Mediaelement audio player
Change audio player style
Load MediaPlayerElement after Infinity Scroll loads more posts
How do I replace a audio gutenberg block to native audio wordpress
WordPress Audio tag problem in Chrome
So the mediaplayer being used here is MediaElement.js. You can read their docs there. The media player has an event which fires to update the time and this happens in javascript. You need to change the javascript or the way it works, I don’t think this is something you can do with just CSS. There … Read more