Easy way to combine php code (lame question)
        Posted  
        
            by 
                alekseygr
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by alekseygr
        
        
        
        Published on 2011-03-15T00:03:09Z
        Indexed on 
            2011/03/15
            0:09 UTC
        
        
        Read the original article
        Hit count: 241
        
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.
© Stack Overflow or respective owner