Wordpress,在短代码中插入URL

Wordpress,在短代码中插入URL,wordpress,Wordpress,我正在尝试在下面的快捷码中显示/插入url: <?php echo do_shortcode('[sc_embed_player fileurl="http://www.example.com/wp-content/uploads/my-music/mysong.mp3"]'); ?> 只需尝试从代码中删除,然后按如下方式编写: <?php echo do_shortcode('[sc_embed_player_template1 fileurl="'.the_field('

我正在尝试在下面的快捷码中显示/插入url:

<?php echo do_shortcode('[sc_embed_player fileurl="http://www.example.com/wp-content/uploads/my-music/mysong.mp3"]'); ?>

只需尝试从代码中删除,然后按如下方式编写:

<?php echo do_shortcode('[sc_embed_player_template1 fileurl="'.the_field('add_audio').'"]'); ?>

我已经找到了解决方案,所以请忽略此帖子!
<?php echo do_shortcode('[sc_embed_player_template1 fileurl="'.the_field('add_audio').'"]'); ?>