WordPress.org

Support

Support » Plugins and Hacks » Yoast SEO » [Plugin: WordPress SEO by Yoast] [shortcodes] bugging out the page analysis on SEO by Yoast

[Plugin: WordPress SEO by Yoast] [shortcodes] bugging out the page analysis on SEO by Yoast

  • Hi All,

    It appears that [shortcodes] con-fund the page analysis. Has anybody else run into this. These are the first three lines of the code:

    <h2>Overview</h2>
    [br top="20"]
    [tabs tabtype="top tabs"]

    And the page analysis says: “There are 1 words contained in the body copy. This is far too low and should be increased.” Even though the editors word count stands at 750. I also get this “The keyword doesn’t appear in the first paragraph of the copy, make sure the topic is clear immediately.” when it clearly does.

    This is not a post to criticize! I think its a fantastic plugin. I was just wondering has anybody else had this problem and is there a work around?

    Cheers
    Shaun

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes, I’ve noticed this too. I haven’t dug into the code yet to see if there’s a (simple) workaround, but perhaps this would be a good feature to add in a future version.

    The plugin strips shortcodes before analyzing the contents. So, once they’re all removed, what’s left of the example is just “Overview”.

    The easiest way to hack around this is to change line 237 in wordpress-seo/inc/wpseo-functions.php from:

    return preg_replace( '|\[(.+?)\](.+?\[/\\1\])?|s', '', $text );

    to:

    return $text;

    If you want the text as is, brackets and all, or to:

    return do_shortcode( $text );

    If you want the shortcodes to be completely interpreted.

    I dunno if this would cause other issues though.

    I also would like to know solution to this..
    i use Styles with Shortcodes for WordPress on one site, and my other site the theme has shortcode features added in it, that i use as well (example/link to page below)

    But when analyzer always says things like (here’s one page for example)

    – here are 87 words contained in the body copy. This is far too low and should be increased. (but there is way more)
    – The keyword doesn’t appear in the first paragraph of the copy, make sure the topic is clear immediately. (the keywords are in the first sentence!)
    -No images appear in this page, consider adding some as appropriate. (there is an image but contained within shortcodes)

    here is link to this particular page HERE

    i’m still very much a ‘noob’ learning about SEO ~ so please excuse my ignorance, and i fully appreciate this plugin (and i’ve managed to learn and understand more since using your plugin, Yoast) ~ Thank You!

    I am having the same problem, and more than once. The page I’m working on now has over 1,000 words on it, but the plugin says “There are 1 words contained in the body copy. This is far too low and should be increased.”

    I guess what I really want to know is this – Will SE’s see it the way the plugin does? Or will they be able to recognize that there is text on the page? If it’s just the plugin, then that’s no big deal, but if it’s something wrong with the html or something else, I would like to know so I can fix it.

    This is the page: http://probaseballinsider.com/baseball-instruction/outfield/outfield-2-tracking-fly-balls/

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] [shortcodes] bugging out the page analysis on SEO by Yoast’ is closed to new replies.
Skip to toolbar