WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[shortcodes] bugging out the page analysis on SEO by Yoast (5 posts)

  1. latrotech
    Member
    Posted 2 years ago #

    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/

  2. Travis Northcutt
    Member
    Posted 1 year ago #

    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.

  3. Alexander Gieg
    Member
    Posted 1 year ago #

    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.

  4. webgrrl
    Member
    Posted 1 year ago #

    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!

  5. SarahBernier
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic