Title: PHP Code
Last modified: January 9, 2018

---

# PHP Code

 *  [Sheila](https://wordpress.org/support/users/sheilahawkinson/)
 * (@sheilahawkinson)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-code-66/)
 * Hi,
 * Need to add the short code in my php file. What is the code?
 * Thanks,
    Sheila
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-code-66%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [David Artiss](https://wordpress.org/support/users/dartiss/)
 * (@dartiss)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-code-66/#post-9848757)
 * Hi Sheila,
 * The shortcode is `[youtube]` but this needs to be placed in your post or page
   content – it won’t work within the PHP itself.

Viewing 1 replies (of 1 total)

The topic ‘PHP Code’ is closed to new replies.

 * ![](https://ps.w.org/youtube-embed/assets/icon-256x256.png?rev=2955063)
 * [Embeds for YouTube](https://wordpress.org/plugins/youtube-embed/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/youtube-embed/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/youtube-embed/)
 * [Active Topics](https://wordpress.org/support/plugin/youtube-embed/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/youtube-embed/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/youtube-embed/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [David Artiss](https://wordpress.org/support/users/dartiss/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/php-code-66/#post-9848757)
 * Status: not a support question