• Hi All,
    I am new to WordPress. This is my first site on WordPress. I have a doubt on inserting and displaying Audio files.
    I have uploaded audio files using media and trying to use the audio file as per the corresponding name in database dynamically from the folder. Dont know how to do that. I am using Helloinfinity PHP Plugin to fetch Data from Database and display.
    For ex:
    if I am using like below:
    echo ‘<audio controls autoplay><source src=”http://we-think.org/wp-content/uploads/2017/01/&#8217;.$Code.’.mp3″ type=”audio/mp3″></audio>’;
    then its working fine. $code contains the exact audio filename.
    But how should I give the path(wp-content/uploads/2017/01/) Dynamically? as I may add audios in different dates and the folders will be different. How to solve this. please help.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘retrieving audios dynamically’ is closed to new replies.