WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] [shortcode] text itself shows up in search engine results

[Resolved] [shortcode] text itself shows up in search engine results

  • I’m using [adsense] shortcode to insert google ads into the body of my blog posts.

    It works fine but somehow Google manages to show the actual text “[adsense]” in the search results.

    Example: Google “Amod GPS Photo Tracker review” and look for results from Navigadget. You’ll see:

    Jul 27, 2009 … [adsense]This is how I like to review things blah blah..

    What am I doing wrong? How does the crawler gets to see the shortcode?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Could it be because I use a plugin (Google XML Sitemaps) that could notify search engines without executing the [shortcode].

    Help please.

    Have a look at the page source of this page:
    http://www.navigadget.com/index.php/2009/07/27/amod-gps-photo-tracker-review

    The text Google is using for their snippet is from your META Description, which does indeed show “[adsense]” as part of the text.

    So I’d look at the Add-Meta-Tags plugin first. Is it automatically adding the first paragraph in, regardless of short code? Or have you accidently just pasted the whole paragraph in, shortcode and all?

    alism you are right. Thank you so much. It is the META description which is filled in by Add-Meta-Tags.

    This should’ve been the first thing I checked.

    Quick and dirty fix was to modify the plugin file: “add-meta-tags/add-meta-tags.php”

    I added this line right before return $amt_excerpt

    $amt_excerpt = preg_replace('/\[adsense\]/', '', $amt_excerpt);

    I’m open to suggestions for a better and more permanent fix.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [shortcode] text itself shows up in search engine results’ is closed to new replies.