Wordpress Shortcodes Showing in SERPs
-
We use some Wordpress shortcodes in our theme and they aren't in the meta description at all. For certain queries, the shortcodes show on the SERPs when Google chooses the description for us -- is there any way to clean this up or prevent it?
It's annoying because it includes the entire shortcode, not the markup that gets generated as a result of the shortcode...
-
Well that's interesting - I see the code for the tags - it's coming out of this class:
id="subgenre-tags-raw" style="display:none">
I also see that you have a meta description - this is a stumper!
Why not head over to the google webmaster forum and reach out! I'd be very interested to see what they say!
-
Sorry for the slow reply -- out of town for the holidays.
Everything loads fine on the page, it's just the snippet on the SERP that is goofy.
-
Do you have an example of this?
From what I can gather it sounds like a php execution problem if markup isn't being generated...a function isn't being called correctly.
Also, meta descriptions aren't by default very useful in WP. I've had to modify themes to use custom meta descriptions on the homepage, categories, and tag pages.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Correct robots.txt for WordPress
Hi. So I recently launched a website on WordPress (1 main page and 5 internal pages). The main page got indexed right off the bat, while other pages seem to be blocked by robots.txt. Would you please look at my robots file and tell me what‘s wrong? I wanted to block the contact page, plugin elements, users’ comments (I got a discussion space on every page of my website) and website search section (to prevent duplicate pages from appearing in google search results). Looks like one of the lines is blocking every page after ”/“ from indexing, even though everything seems right. Thank you so much. FzSQkqB.jpg
On-Page Optimization | | AslanBarselinov1 -
With the release of so many domains from .expert through to even .xyz why don't we see many around the top of SERPS?
And should I use one of these to create a nice looking site, invest time, energy, resource, money or will I simply regret it later and stick to the main TLDs? First question on Moz (yey)
On-Page Optimization | | LGG1230 -
Robot.txt file issue on wordpress site.
I m facing the issue with robot.txt file on my blog. Two weeks ago i done some development work on my blog. I just added few pages in robot file. Now my complete site seems to be blocked. I have checked and update the file and still having issue. The search result shows that "A description for this result is not available because of this site's robots.txt – learn more." Any suggestion to over come with this issue
On-Page Optimization | | Mustansar0 -
Best wordpress theme seo 2014
In your opinion what are the best wordpress theme in 2014 that are responsive, good speed and seo buildup
On-Page Optimization | | maestrosonrisas0 -
Www.colourbanners.co.uk/ & colourbanners.co.uk showing up as two seperate URLs - is this going to be dupliacte content issue?
Hi Guys, I have just created a report in Moz and there appears to be 91 duplicate content issues with the site which i need to fix as i think it could be the reason why we are suffering from a penalty. One of the main questions i have is these 3 variations of the URL http://www.colourbanners.co.uk/ http://colourbanners.co.ukhttp://colourbanners.co.uk/Each have links pointing to them. My question is, could this be causing a dupe issue?regardsGerry
On-Page Optimization | | gezzagregz0 -
Wordpress & trailing slash on domain name
Hi recently changed my site so it is based on Wordpress, got my preferred domain set in Google webmaster as www.domian.co.uk but since moving to wordpress my domain is now having a slash put on the end of it like www.domain.co.uk/ Most of the links going to my homepage do not have the slash on the end so am I right in thinking I should get rid of the slash from my site so I have one consistent url? If so any ideas how to banish the slash? Cannot seem to do it through the Wordpress general settings (despite preferred domain being set as www.domain.co.uk !) Thanks T
On-Page Optimization | | Jon-C0 -
Strange meta description shown in SERPS
Hi there, I recently stumbled upon a strange phenomenon in the SERPs. Here's the situation: A customer’s website is ranking for a keyword with the root domain. Strangely the actual meta description (as implemented in the source code) is not shown. Instead Google takes the H1-Header and a part of a short element from a contact form. Any clue/hint, how this could have happened and can be changed? Sorry, that I can’t name the domain and the keyword (in German), but I hope, the above explains the problem. Thanks in advance and cheers from Germany Sven
On-Page Optimization | | targi420 -
Problem with Plugin: Wordpress SEO by Yoast
Hi Hi, I'm using the Plugin "Wordpress SEO by Yoast". Unfortunatelly, this plugin generates a sourcecode looking like this: name='description' content='XXXXXX.'/> Seomoz can't read this and tells me, that my pages have no description. Google doesn't matter and reads it correct. Is there anything I can do about this? Many greetings André
On-Page Optimization | | waynestock0