I have the following code in PHP:
<?php if (function_exists("insert_audio_player")) {insert_audio_player("[audio:|titles=]"} ?>
Which renders an audio player to my page in WordPress. I need to call a custom field inside this code. My custom field code is also coded in PHP:
<?php print_custom_field('tc_filename'); ?>
Something like:
<?php if (function_exists("insert_audio_player")) {insert_audio_player("[audio:<?php print_custom_field('tc_filename'); ?>|titles=<?php print_custom_field('tc_title'); ?>]"} ?>
How can I use or integrate the second block of code with the first?