Hi @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
Shortcode:
<meta itemprop=”embedUrl” content=”https://www.youtube.com/watch?v=%%V%%” />
[embed]https://www.youtube.com/watch?v=%%V%%[/embed]
page:
[sc name=”yv” V=”SJrXgCLgcwY”][/sc]
Hi @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
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
Many many thanks, Aakash!
You are really great!
Cheers !
Please do share a review if possible π
Already valued it!
I suppose it’s the #1 shifting wp ability plugin!
It’s like macros in assembler.
It’s imposible to underestimate!