• Resolved Frank

    (@frankswift)


    Hello,

    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]https://youtube.com/watch?v=xxxxxxxx[/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 5 years, 11 months ago by Frank.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    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

    (@frankswift)

    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

    (@cybr)

    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' );
    } );

    Cheers!

    Thread Starter Frank

    (@frankswift)

    Thank you so much! I appreciate the quick responses!

    FYI, we resolved it in the plugin.

    [ Signature deleted ]

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

    (@frankswift)

    Awesome, thank you!!

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