Support » Plugin: The SEO Framework – Fast, Automated, Effortless. » Autogenerated Meta Descriptions include shortcodes

  • Resolved Frank



    I sometimes begin each page or blog post on my site with a YouTube embed. As a result, when the meta description is generated, it starts with the YouTube shortcode:

    “[embedyt][/embedyt] First sentence of paragraph begins example”

    I have hundreds of posts like this. Is there anyway to get SEO Framework to disregard shortcodes and just include normal text? I would prefer not to have to manually edit every single post that contains this issue. Thanks for any assistance!

    • This topic was modified 4 years, 2 months ago by Frank.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer


    Hi Frank,

    YouTube by EmbedPlus registers its shortcode only on the front-end. So, in the admin area, neither The SEO Framework nor WordPress is aware of this shortcode.

    However, there’s good news: although the shortcode is displayed as-is as a description part in the admin area, it won’t be displayed like that on the front-end; which is what search engines see. So, it’s an inconsistency displayed in the placeholders only, and there’s no need to be worried.

    Now, to fix this, kindly ask the authors of that plugin to register the shortcode in the admin area too; like Gutenberg, which makes everything available on both ends for ensured compatibility 🙂

    I’m a bit stumped on the need for that plugin, as WordPress supports YouTube embedding out of the box… without a shortcode: just paste the YouTube URL and WordPress converts it.

    Thread Starter Frank


    Thanks, that’s a relief! I use it because the normal WordPress isn’t capable of embedding playlists and galleries from YouTube, or schema tags for additional SEO value and other customizations where I can change the look and functionality of the YT embeds, so I use the plugin to compensate. Hopefully the developers will listen when i ask them to update accordingly.

    Plugin Author Sybre Waaijer


    I understand, thanks for enlightening me 🙂

    If you’re looking for a quick fix–so that the counters and other audits are correct–, you can use this snippet:

    add_action( 'init', function() {
    	if ( is_admin() )
    		add_shortcode( 'embedyt', '__return_empty_string' );
    } );


    Thread Starter Frank


    Thank you so much! I appreciate the quick responses!

    FYI, we resolved it in the plugin.

    [ Signature deleted ]

    • This reply was modified 3 years, 7 months ago by Jan Dembowski.
    Thread Starter Frank


    Awesome, thank you!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Autogenerated Meta Descriptions include shortcodes’ is closed to new replies.