I hope this is my last support request before launching a big beautiful site with Types/Views used all over it!
I'm using a great audio player plugin (hidden link) to insert a preview file in my WooCommerce products. This plugin uses the shortcode [wp_media media="audio" volume=0.8 urls="/some-directory/song-file.mp3"]
I used Views to make a custom field for the song file url. On my Products Archive page I'm successfully using the plugins and Views shortcode together like this:
[wp_media media="audio" volume=0.8 urls="[types field="file"][/types]"]
Works like a charm!
My problem:
I'm trying to get the same player with the same song file to show on the single-product.php template, just below the product title.
I tried multiple code snippets based around 'do_shortcode()' with no luck. I'm pretty new to php so it's a bit over my head.
Using Content Template works, but the product description displays way at the bottom of the single product template.
As this preview file is the most important part of these products, I need it right at the top under the product title.
I also tried a new single-product.php file in my child theme, but I had no luck getting it to work either.
What is the best way to go about this?
I'm using Genesis, WooCommerce, Types/Views, and the WordPress Media audio player linked above.