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
-
How to safely syndicate blog posts in LinkedIn Company page
We currently post our new blog post on our company profile (in Linkedin) immediately after publishing on our company blog. Is this running the risk of duplicate content? My colleague pastes the new posts URL into (I've given an example using my own site - ironically about Panda)! Does this run the risk of creating duplicate content? I've tried searching for indexed pages in Google for past posts and only find the originals (no URLs for the LinkedIn domain). I've got a bit confused about the whole subject having read Neil Patel's excellent article on "...syndicating content without screwing up you seo"! Thank you 🙂 10FpxLP 10FpxLP
Technical SEO | | Catherine_Selectaglaze1 -
Using the £ sign in meta title
Is it a bad idea to include a £sign in my meta title? It currently has a price incentive in it. Does Google not like this from organic traffic titles/ meta descriptions? Thanks,
Technical SEO | | EdLongley0 -
Finding websites that don't have meta descriptions
Hi everyone, as a way to find new business leads I thought about targeting websites that have poor meta descriptions or where they are simply missing. A quick look at SERPs shows this is still a major issue for many businesses. Is there any way I can quickly find pages for which meta description is lacking? Thank you! Best regards, Florian
Technical SEO | | agencepicnic0 -
Meta keywords shown in Google SERPS as site description
I'm seeing Google display meta-keywords in the SERP description for some sites (at least a half dozen that I've checked). I BELIEVE IT IS AN AJAX ISSUE BECAUSE: The sites all use AJAX to display content. So the meta-keywords are in the header, and the javascript that displays the content. Non-AJAX parts of the site display properly in Google SERPS The meta-keywords don't visibly appear anywhere on the page. When I turn off images and Javascript in Chrome I don't see any hidden keyword text. I BELIEVE IT IS A GOOGLE-SPECIFIC ISSUE BECAUSE: Each site displays properly in Bing and Yahoo SERPS - the meta-description is the description. However, (as expected) I see the same strange meta-keyword activity in Aol search In Screaming Frog's SERP preview I see the meta-description as the description. Google has been ignoring met-keywords for years. Any idea why it's appearing in the SERPS for these AJAX powered sites? I found one other person who saw that Google may be reading and displaying their content in AJAX even though that content is meant to appear on a different "page". No one on that Google Forum seemed to understand the person's problem. The only reason I get it is because now I'm seeing it with my own eyes. I know the Moz community can do better, so i'm posting about it here.
Technical SEO | | AlexCobb0 -
Meta Description Being Picked up from another site!?
Hi, when we search for a phrase (which is the most searched for phrase for our company) the meta description which is displayed isnt the one we set, and it hasnt picked it up from any text on the page. The description is incorrect, it says we have an office in a city that we dont, and it just isnt a very good description generally. What has been suggested to us by our website developers is that the description is being picked up by google from a website which lists companies details. The description which is displayed on that website, is the same as the description which is shown for our company in the search results. But is it possible for Google to ignore the meta description which is set in our homepage and the other text on the home page, and pickup the text from another website and use it as our description? Many Thanks
Technical SEO | | danieldunn100 -
How can I Style Long "List Posts" in Wordpress?
Hi All, I have been working on a list-post which spans over 100 items. Each item on the list has a quick blurb to explain it, an image and a few resource links. I am trying to find an attractive way to present this long list post in Wordpress. I have seen several sites with long list posts however; they place their items one on top of the other which yields a VERY long page and the end user has to do a lot of scrolling. Others turn their lists into slideshows, but I have no data on how slides perform against 10-mile-long-lists which load in 1 page. I would like to do something similar to what List25.com does as they present about 5-10 items per page and they seem to have pagination. The pagination part I understand however; is there a shortcode plugin to format lists in an attractive way just like list25?
Technical SEO | | IvanC0 -
Is it better to guest post with or without using rel=author?
If I guest post on 50 blogs, all using rel=author so they are attributed to my Google Plus account, would the links be de-valued since they are self reference back to my own blog/website? Would it be better to guest post on a blog that doesn't use rel=author?
Technical SEO | | designquotes0 -
Meta keywords
I heard that Google doesn't use 'meta keywords' for ranking. Is that true and does it harm to use the meta tag? And how do the other big SEs use the tag?
Technical SEO | | kortingsplanet0