Easy way to combine php code (lame question)
- by alekseygr
Hi, I have vary easy and LAME question.
I have code:
<?php if (function_exists("insert_audio_player")) {insert_audio_player("[audio:|titles=]"} ?>
This code outputs audio player to my page in wordpress. I need to call custom field inside this code. My custom field code is:
<?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 call for second code inside first?
Thx.