noob php guy here... i know what the issue is - just cant find an answer because most searches for "nested php tags" are about if statements... not what i'm after...
this is for a wordpress site, where an audio player plays an mp3:
Code: Select all
<?php if (function_exists("insert_audio_player")) { insert_audio_player("[audio:http://www.mysite.com/path/to/<?php getCustomField('mp3'); ?>.mp3]"); } ?>[audio:http://www.mysite.com/path/to/track.mp3]
(which is referenced by the audio player...)
i know i'm not allowed to have more than one "php" tag in a string but trying echo kept putting the getCustomField reference outside the url string, so the player couldn't find the mp3 since the resulting url was always just "http://www.mysite.com/path/to/"
i know it's an easy one, hoping for some help soon!
thanks!
s