Plugin Author
Vova
(@gn_themes)
Thread Starter
byzgl
(@byzgl)
but I noticed something that I used lots of shortcodes but only this plugin’s shortcodes are showing on google results.
Plugin Author
Vova
(@gn_themes)
Usually, Google takes page description from the <meta name='description'> tag
. Could show me a few of your pages with valid and invalid descriptions? I’d like to inspect the meta tag.
Thank you.
Thread Starter
byzgl
(@byzgl)
thanks for your interest, I think I solved it by using:
preg_replace(‘/\[.*\]/’, ”, $post[‘post_content’])
https://premium.wpmudev.org/forums/topic/shortcode-should-not-show-up-in-search-results
Thread Starter
byzgl
(@byzgl)
Sorry that code is better:
$content = preg_replace(‘#\[[^\]]+\]#’, ”,$content);