Page 2 of 2
Re: MP3 player
Posted: Wed Feb 15, 2023 12:53 pm
by LRAM
Thank a lot, I will check it out
Re: MP3 player
Posted: Wed Feb 15, 2023 1:14 pm
by LRAM
Ok
if found the page and the loop
but when I add the line supposed to call the player {{ MP3 }}
I see the code et not the player, so I guess I must add something to tell it to display the player not the code, but I don't know the syntax
thank
Re: MP3 player
Posted: Thu Feb 16, 2023 3:58 pm
by Edi
The shortcode {{ MP3 }} works only as content of posts and pages.
But you can use the code of it in the file
home.php. For example:
Code: Select all
<audio controls>
<source src="https://sucrepop.com/Singles/mp3/<?php echo $page->custom('MP3'); ?>" type="audio/mpeg">
Your browser does not support the audio element.
</audio>
P. S. Nice song!
Re: MP3 player
Posted: Fri Feb 17, 2023 12:18 pm
by LRAM
Thanks for the P.S.
it works like a charm now, just need to upload the mp3 and i'll be ready
thanks a lot