Title: Nesting of php (help)
Last modified: August 20, 2016

---

# Nesting of php (help)

 *  Resolved [prashanth1990](https://wordpress.org/support/users/prashanth1990/)
 * (@prashanth1990)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/nesting-of-php-help/)
 * hi wp
 * I have custom field which holds a youtube url
    i generally use the below code
   to display the value
 *     ```
       <?php echo get_post_meta($post->ID, 'movie', true); ?>
       ```
   
 * i recently installed
    [](http://wordpress.org/extend/plugins/youtube-embed/)
 * the above plugin uses the below code to display a video (from a template)
 *     ```
       <?php youtube_video_embed( 'http://www.youtube.com/watch?v=fL4BjC5Irf8');?>
       ```
   
 * i just need to replace the youtube link with my custom field youtube url
 * i tried using
 *     ```
       <?php youtube_video_embed( '.get_post_meta($post->ID, 'movie', true). ');?>
       ```
   
 * but it doesn’t work… i aint that good with php code please help
 * Thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [prashanth1990](https://wordpress.org/support/users/prashanth1990/)
 * (@prashanth1990)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/nesting-of-php-help/#post-2872306)
 * sorry in the above post i forgot to add the plugin name
    its “Artiss YouTube 
   Embed”
 *  [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/nesting-of-php-help/#post-2872420)
 * You were nearly there. This should work…
 * `<?php youtube_video_embed( get_post_meta($post->ID, 'movie', true) );?>`
 * David.
 *  Thread Starter [prashanth1990](https://wordpress.org/support/users/prashanth1990/)
 * (@prashanth1990)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/nesting-of-php-help/#post-2872423)
 * Thanks David 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Nesting of php (help)’ is closed to new replies.

## Tags

 * [nesting](https://wordpress.org/support/topic-tag/nesting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [prashanth1990](https://wordpress.org/support/users/prashanth1990/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/nesting-of-php-help/#post-2872423)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
