Meta Description for ALL my Posts is Being Overwritten!
-
Every single one of my posts meta descriptions are being overritten with the same meta description!
I use Yoast and have proper meta descriptions in my posts, but something seems to be overriding them.
Any idea what could be causing this?
Thank you!!!
- Mike
-
Hey Mike. Not to fret, this is actually a common silly mistake in theme development. The meta description shouldn't be set in WordPress theme because that is handled in the wp_head function. This function is where Yoast, and other plugins, hook into to deliver all the SEO optimized meta and header tags.
-
This is wrong, but right. This is a theme problem. The blog description is a description for the blog website as a whole, and not a description for the page. In Wordpress, you should not set a meta description explicitly in the theme file. That's the job of the wp_head, especially if you are using an SEO plugin to manage your descriptions. It's a common mistake that is easily remedied as evidenced by his reply.
-
The string 'get_bloginfo('description')' spawns the blog description stored in wordpress under settings. But that shoud'nt cause issues with different setup descriptions per page while using a SEO plugin on wordpress. It's more of a theme issue i think because normally that shoud'nt happen.
I woud'nt worry alot about it either; google tends to ignore the description sometimes too and focusses on the actual content on page.
-
Thanks for all the responses!
I did remove the code and it seems to have solved the problem. Now I just don't know if any other different issues could have popped up from removing that code. So the problem seems to be fixed - I'm just sitting a bit in the unknown in terms of if the change had any other unwanted repurcussions.
- Mike
-
Yes and by removing that shortcode you completely remove the description from the blog. But a description is'nt something google takes into account alot now these days. It can actively read the content on your website or page, and align that within search. I mean i have sites that are completely ignored due to the description tag.
It's like meta name keywords all over again.
@Naturalsociety, if you switch the theme to something temporarily, does it appear back again? If so; you have a theme issue.
-
Sounds like a WordPress issue. I suspect there is a meta description defined in your theme file. Check that isn't the case.
It will look like this or very similar:
get_bloginfo('description')
Get rid of the whole meta tag that contains this php code.
If you are unsure how to find this, it will most likely be in your theme's header file. You can find this by going to the theme's folder and look for header.php.
You can also do this through the WordPress Dashboard > Appearance > Theme Editor. On the right hand side select the "Theme Header".
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
-
Pages with duplicate meta descriptions
We have around 17 pages have underscores in the URL. From the 17 pages, we have changed 3 pages URL for example if the url is test_sample_demo.html, we have changed as test-sample-demo.html After the updates, we have made redirect as follows Redirect 301 test_sample_demo.html test-sample-demo.html Presently google webmaster tool shows as "Pages with duplicate meta descriptions" & "Pages with duplicate title tags" for changed pages How to fix this. Please help us
Technical SEO | | Intellect0 -
Help: Blog post translations resulting in 404 Not Found?
A client set up a website that has multilingual functionality (WPML) and the back end is a bit of a mess. The site has around 6 translated versions of the 30 or so existing English blog posts in French, Italian and Spanish - all with their own URLs. The problem is that on the remaining 24 English blog posts, the language changer in the header is still there - even though the majority of posts have not been translated - so when you go to change the language to French, it adds **?lang=fr **onto the existing english URL, and is a page not found (4xx client error). I can't redirect anything because the page does not exist. Is there a way to stop this from happening? I have noticed it's also creating italian/french/spanish translation of the english Categories too. Thanks in advance.
Technical SEO | | skehoe0 -
Google Six Pack Meta Descriptions
Anyone know of some good resources on the way to control the meta descriptions in the Google six pack for a branded search. Google appears to often bypass the meta description and pull random text from the page. We have tested this by adding the brand name to the meta description and this appears to help but doesn't always sort the issue. You often get the same results with the site comand. It not really an SEO issue more a branding one. Anyone get any ideas or resources they can point me at?
Technical SEO | | highwayfive0 -
Branding in a post EMD/Panda world?
How do non-business websites think about exact match domain names and branding after EMD and Panda? What is an EMD and what is a "brand" when there's no business or commercial brand involved? And does it impact your SEO outcomes? I have a Thailand travel blog which is a personal crusade of mine. I like Thailand, I love travelling there and I like sharing my experiences and knowledge. I don't have a business name, so when I started the blog I just used the best phrase I could find that was available as a domain name - at the time it was "bangkoktravelthailand.com". Late in 2011 I thought this sounded a bit spammy, so I found a new domain name "traveltipsthailand.com" and 301'd across to that. All went well and traffic grew consistently thanks to good writing and some basic SEO, until in late September 2012 the site got 'whacked' by Google - possibly due to EMD, but I think more likely due to Panda and some accidental poor quality backlinks (I posted a reply on another travel site, pointing back to my site, but it ended up becoming 100s of low value backlinks because of the way that site managed it's "latest comments" widget). Since then I've been trying very hard to rebuild my traffic, but it's a tough gig. I am now averaging better than I was in Sept 2012, but nowhere near where I was on trend to be by now. I have a small social media profile (800 Twitter followers plus Google+, Facebook and Pinterest) and I am slowly building some supporting pages on prominent Web 2.0 sites and seeking out quality guest post opportunities. But I still worry about the domain name. Does Google see it as an EMD? I don't use the domain name words at all in my page titles (I use xxx | Thailand travel blog) and I try not to use it in anchors either (I tend to use "Thailand travel blog" or my own name. But I still have a few old backlinks that say "Travel Tips Thailand" and I use that phrase as my brand when talking about the website. So how should sites like mine think about "brand" and "EMD"? Is it an issue or not? Is my domain name holding my site back? I have others I can use like "1travelthailand.com" and "thailand-travel-blog.com" but I'm just sitting on them, not sure where to go. I also have "asiantraveltips.com" and a long term view of rolling this site up with other blogs I'm slowly developing about China, Cambodia and Vietnam. But again, not sure where to go any more. Anyone care to share their thoughts?
Technical SEO | | Gavin.Atkinson0 -
Auto generated meta description tag in Drupal
Was having issues on Drupal not autogenerating a meta description tag, but I think I have figured it out. Just to verify, would this piece of code be the meta description tag (reason I ask is b/c it looks a little different than the usual tag I have seen):
Technical SEO | | kevgrand0 -
Updating Meta Tag error quickly besides submit to index in Webmaster Tools
For a conference page marketing built the meta tag didn't have correct year and date of the conference. I updated and used webmaster tools submit to index to try and get it updated in google search quickly but meta tag has not updated. Are there other avenues to get this corrected?
Technical SEO | | inhouseninja0 -
What can I do about missing Meta Description for category pagest etc.?
On all my campaigns I'm returning high levels of 'Missing Meta Description Tags'. The problem with fixing this is they're all for category, tag and author pages. Is there a way to add a meta description to these pages (there are hundreds) or will it not really have any ranking effect?
Technical SEO | | SiliconBeachTraining0 -
Very well established blog, new posts now being indexed very late
I have an established blog.We update it on daily basis. In the past, when I would publish a new post, it would get indexed within a minute or so. But since a month or so, its taking hours. Sometimes like 10-12 hours for new posts to get indexed. Only thing I have changed is robots.txt. This is the current robots file. User-agent: * Disallow: /cgi-bin Disallow: /wp-admin Disallow: /wp-includes Disallow: /wp-content/plugins Disallow: /wp-content/cache Disallow: /wp-content/themes Disallow: /wp-login.php Disallow: /*wp-login.php* Disallow: /trackback Disallow: /feed Disallow: /comments Disallow: /author Disallow: /category Disallow: */trackback Disallow: */feed Disallow: */comments Disallow: /login/ Disallow: /wget/ Disallow: /httpd/ Disallow: /*.php$ Disallow: /*?* Disallow: /*.js$ Disallow: /*.inc$ Disallow: /*.css$ Disallow: /*.gz$ Disallow: /*.wmv$ Disallow: /*.cgi$ Disallow: /*.xhtml$ Disallow: /*?* Disallow: /*? Allow: /wp-content/uploads User-agent: TechnoratiBot/8.1 Disallow: # ia_archiver User-agent: ia_archiver Disallow: / # disable duggmirror User-agent: duggmirror Disallow: / # allow google image bot to search all images User-agent: Googlebot-Image Disallow: /wp-includes/ Allow: /* # allow adsense bot on entire site User-agent: Mediapartners-Google* Disallow: Allow: /* Sitemap: http://www.domainname.com/sitemap.xml.gz Site has tons of backlinks. Just wondering if something is wrong with the robots file or if it could be something else.
Technical SEO | | rookie1230