WordPress.org

Forums

WordPress SEO News
Invalid HTML5 attribute (3 posts)

  1. Josh Carr
    Member
    Posted 2 years ago #

    Whenever a page/post doesn't have an original source listed, the plugin adds this to the page:

    <link rel="original-source" href=" " />

    This creates an invalid href attribute in HTML5 and shouldn't be included on a post/page without a source listed. Unless there's another reason for this that I'm not aware of, I'd love to see this fixed. Thanks!

    http://wordpress.org/extend/plugins/wordpress-seo-news/

  2. kutu62
    Member
    Posted 2 years ago #

    this error has caused over 4,000 404 errors in google webmaster because the link rel="original-source" is an invalid link in the source code produced by Yoast SEO News plugin

  3. kutu62
    Member
    Posted 2 years ago #

    here is the fit on github

    https://github.com/jdevalk/Google-News-Sitemap/pull/25

    $original_source = trim( wpseo_get_value( 'newssitemap-original', $post->ID ) );
    if ( !empty( $original_source ) ) {
    echo '' ;//issue in head, has no output, If left blank it stays blank, that is why removed.
    } else {
    $sources = explode( '|', $original_source );
    foreach ( $sources as $source )
    echo '';//issue in head, it outputs the Post Permalink instead of original source one
    }

    Update xml-news-sitemap-class.php in wordpress-seo-new under plugins

    how to remove original-source from yoast seo wordpress news plugin

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic