Title: [embed] doesn&#8217;t work inside shortcode
Last modified: June 26, 2021

---

# [embed] doesn’t work inside shortcode

 *  Resolved [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/)
 * Hello and thank you for the really extremely useful plugin!!!
 * Unfortunately I found that [embed]xxx[/embed] doesn’t work in shortcode.
    On 
   the final page apeares just <div></div> without anything inside.
    -  This topic was modified 4 years, 11 months ago by [Alexander Guskov](https://wordpress.org/support/users/forcesail/).

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14599770)
 * Hi [@forcesail](https://wordpress.org/support/users/forcesail/),
 * Thanks for using Shortcoder.
 * I could not understand the issue you have described.
    Embed shortcode is not 
   provided by shortcoder.
 * Can you please share the “full shortcode content” you have created and how you
   are inserting the shortcode in your posts ?
 * Thanks,
    Aakash
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14600255)
 * Shortcode:
    <meta itemprop=”embedUrl” content=”[https://www.youtube.com/watch?v=%%V%%&#8221](https://www.youtube.com/watch?v=%%V%%&#8221);/
   > [embed]https://www.youtube.com/watch?v=%%V%%[/embed]
 * page:
    [sc name=”yv” V=”SJrXgCLgcwY”][/sc]
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14604963)
 * Hi [@forcesail](https://wordpress.org/support/users/forcesail/),
 * I looked at the how `embed` shorcode works.
 * It is designed to work only on post content and text widget for some reason.
 * [https://github.com/WordPress/WordPress/blob/6a163e199a236a6ddff18ceefc3931ee8b25a310/wp-includes/class-wp-embed.php#L32](https://github.com/WordPress/WordPress/blob/6a163e199a236a6ddff18ceefc3931ee8b25a310/wp-includes/class-wp-embed.php#L32)
 * You can add this below code to your site to make it running everywhere.
 *     ```
       function manual_wp_embed(){
   
           $wp_embed_sc = $GLOBALS['wp_embed'];
           add_shortcode( 'embed', array( $wp_embed_sc, 'shortcode' ) );
   
       }
   
       add_action( 'init', 'manual_wp_embed');
       ```
   
 * Thanks,
    Aakash
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14605552)
 * Many many thanks, Aakash!
    You are really great!
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14606494)
 * Cheers !
    Please do [share a review](https://wordpress.org/support/plugin/shortcoder/reviews/?rate=5#new-post)
   if possible 🙂
 *  Thread Starter [Alexander Guskov](https://wordpress.org/support/users/forcesail/)
 * (@forcesail)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14607249)
 * Already valued it!
    I suppose it’s the #1 shifting wp ability plugin! It’s like
   macros in assembler. It’s imposible to underestimate!
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14608080)
 * Thanks [@forcesail](https://wordpress.org/support/users/forcesail/) 🙂

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

The topic ‘[embed] doesn’t work inside shortcode’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [4 years, 10 months ago](https://wordpress.org/support/topic/embed-doesnt-work-inside-shortcode/#post-14608080)
 * Status: resolved