将Wordpress函数嵌套在函数内的短代码中

I need to use a plugin shortcode within a template file, but have one of the variables be set by the value of a custom field in the post. Here's what I have so far. This just breaks the entire page.

My effort (not working):

<?php echo do_shortcode('[wpsp pls_id="get_post_meta($post->ID, 'playlist', true)"]'); ?>

The shortcode:

[wpsp pls_id="NEED VALUE SET HERE"]

The custom field function:

<?php echo get_post_meta($post->ID, 'playlist', true); ?>

Thanks.

Try this:

<?php echo do_shortcode('[wpsp pls_id="' . get_post_meta($post->ID, 'playlist', true) . '"]'); ?>