Downloadable Product Audio Player
-
I am trying to have the default wordpress audio shortcode display on single products pages, and I can get it to work using a specific link to an audio file, but how would I get it to automatically grab an attached mp3 file to the product so I don’t have to manually add links for every product?
This is the code I am using on the template file so far.
$attr = array(
‘src’ => ,
‘loop’ => ”,
‘autoplay’ => ”,
‘preload’ => ‘none’
);
echo wp_playlist_shortcode( $attr );
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Downloadable Product Audio Player’ is closed to new replies.