Hi,
I have a View for cpt "Song", in the View the audio of the song can be played and downloaded.
If the code for the download button is hardcoded like this, it downloads nicely:
<div class="wp-block-file"><a href="https://mydomain.com/popkoor/wp-content/uploads/sites/53/2023/12/the_song.mp3" class="wp-block-file__button wp-element-button" download>Download</a></div>
But if it is like this, the button starts playing the audio first and from there the file can be downloaded through the 3 vertical dots:
<div class="wp-block-file"><a href="{{ clone.audio }}" class="wp-block-file__button wp-element-button" download>Download</a></div>
Have a look here: https://digitopress.staging.wpmudev.host/popkoor/song/showcase/
The download button at the bottom is hardcoded and works immediately.
How can I eliminate that extra step and have the button acting immediately?