I'm trying to embed a download link for previews in a music site I'm building for a couple of friends. They are currently filling up the system with content and I'm using a SoundCloud iframe HTML5 code and secret link in a custom field to insert into the track's page:
The 'download' link isn't appearing despite it being enabled in SoundCloud and visible on the SoundCloud page for the track:
Is there any way I can 'force' the download link to appear? I can't see anything in the SC API about modifying the HTML5 embed code to show the download button...
Here's my current code for the embed using Advanced Custom fields:
<?php // Soundcloud preview if(get_field('sc_preview')) : echo '<div class="tempsc">' . get_field('sc_preview') . '</div>'; endif; ?>
And there's some embed code as an example:
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/110094906"></iframe>
How do I embed the SoundCloud html5 widget and get the 'download' link to work in the widget? If it involves appending something to the URL of the track, is there a Wordpress function I can use to regex the embed code and add this info?