How To Add Google News Keywords Metatag (news_keywords) To WordPress

It’s been awhile since I’ve burned a few hours trying to get a WordPress configuration figured out and working on my site, but today was a worthy cause.

Google announced on Wednesday a new way to tag your blog posts with Google news keywords metatag data so that it helps Google News determine what the best content is for particular news stories.

In Google’s announcement, they shared some example code on what your meta data needs to look like in order for the crawlers to read and access your tags.

Well, as is typical of Google, they NEVER give you detailed instructions on how to implement it – they always keep it basic at the HTML page level.

I mean, don’t they realize that most of the sites in Google News are ran on WordPress, or some other type PHP CMS?

Anyway, I finally figured out how to do it and get it working correctly on this site (Tablet Crunch) which is a WordPress site.  Here’s how I got it working:

How to setup Google News keywords metatag (news_keywords) in your WordPress blog:

#1:  Setup code in your header.php

The first thing you need to do is add some code right before the closing head tag </head> in your header.php.  Here’s the exact code I’ve added to my header.php (again, right before the closing head tag:

<meta name=”news_keywords” content=”<?php
while (have_posts()) : the_post();
$keywords = get_post_meta($post->ID, ‘keywords’, false);
if ($keywords){
echo $keywords[0];
}
else
{
echo ‘iPad, Android tablets, tablet pc, tablet pcs,’;
}
endwhile;
?>” />

One important note to make here:  you see the second instance of echo where I have ‘iPad, Android tablets, tablet pc, tablet pcs,’;   you have to change those keywords to your own site’s relevant keywords and phrases.  This second echo reference defines the default keyword phrases to use in each of your posts if you don’t specific keyword phrases in your custom fields on your individual posts (I’ll explain this more in a minute).

2)  create a custom field on your individual posts

Now all you need to do is create a custom field in your individual posts pages called “keywords” (without quotes) as the custom field name.

That’s right – just the word “keywords” (again, without quotes) as the custom field name.

And then you’ll want to add your news related keywords in the “Value” field as a comma separated list.

So long as you have the code properly inserted into the header.php, and you’ve created the custom field correctly, you can now add your news related keywords into your post.

You’ll know if you’ve done everything right by viewing the page source of your post and searching for “news_keywords” (without quotes).  And you should now see the meta tag and the keywords you specified.

Here’s a summary of what Google had to say about their news_keyword meta tag on Wednesday:

…today we’re excited to announce a news_keywords metatag. The goal is simple: empower news writers to express their stories freely while helping Google News to properly understand and classify that content so that it’s discoverable by our wide audience of users.

Similar in spirit to the plain keywords metatag, the news_keywords metatag lets publishers specify a collection of terms that apply to a news article. These words don’t need to appear anywhere within the headline or body text. Taking the Variety example above, news keywords such as “stocks”, “stock market”, or “crash” would be helpful in allowing Google News to better understand the article content for ranking without forcing the editors to water down the creativity of a great headline. Because the metatag appears only as part of the HTML code of a page, visitors to a site won’t ever see the magic under the hood.

Share This Post

Related Articles

74 Responses to “How To Add Google News Keywords Metatag (news_keywords) To WordPress”

  1. 隆鼻 says:

    隆鼻醫師會先幫妳評估,讓妳了解之後的臉型會如何,大家都希望以「自然」為主,而不是「黃金比例」。

  2. your christmas coupon

    I have to convey my appreciation for your kind-heartedness in support of individuals that really want assistance with the subject. Your personal commitment to getting the message around came to be surprisingly good and has regularly enabled associates…

  3. Best Magic Apps

    [...]we came across a cool web-site that you might delight in. Take a appear should you want[...]

  4. XXX says:

    more similar here

    I would like to show my admiration for your kindness supporting all those that have the need for guidance on in this situation. Your very own dedication to getting the message across became quite interesting and has regularly enabled women like me to g…

  5. My brother recommended I might like this website.
    He was entirely right. This post actually made my day. You can not imagine simply how much time I had spent for this information!
    Thanks!

    Review my web-site … 5 star beach resorts in Southeast asia

  6. Site Web says:

    comment fast christmas ideas

    I would like to get across my passion for your kind-heartedness giving support to folks that need help on this important idea. Your very own dedication to passing the solution all-around had been quite effective and have always helped girls much like m…

  7. Videos Porno says:

    Title

    [...]Sites of interest we have a link to[...]

  8. Title

    [...]that will be the finish of this write-up. Here you’ll come across some websites that we assume you will value, just click the hyperlinks over[...]

  9. Manuel says:

    new christmas destination

    I would like to voice my love for your kind-heartedness for women who should have help with the idea. Your real dedication to getting the message across had been particularly productive and has specifically allowed those just like me to achieve their a…

  10. finance says:

    So why is being overweight such a direct link to diabetes.
    Individuals who have underlying medical condition should also consult a
    physician before taking this diet pill. Assuming that
    you aren’t a super-taught individual, you will have some major
    snags adding on control over your zealous urges towards consuming distinctive sustenances.

    Here is my web page: finance

  11. Zachary Davi

    One thing odiassd I’d like to reply to is that weight loss program fast may be accomplished by the right diet and exercise. Ones size not simply affects appearance, but also the entire quality of life. Self-esteem, major depression, health risks, plus…

  12. hot tub hire says:

    new info

    Hello i should point out my gratitude for your generosity supporting folks who should have guidance on this particular subject. Your real commitment to passing the message up and down has been pretty useful and has continuously empowered some individua…

  13. digg that

    regarding I would like to inform regarding Film Streaming men and women that really need help on this important matter. Your very own dedication to passing the solution up and down appeared to be particularly practical and has empowered somebody much l…

  14. a warm thanks

    hi i should get across my love for your kind-heartedness in support of people who really want help with in this concern. Your real commitment to passing the solution all through appeared to be quite significant and has frequently made people like me to…

  15. masöz says:

    our website

    I have to convey my appreciation for your generosity giving support to folks that actually need help with this one content. Your special commitment to passing the message throughout appears to be really effective and has constantly empowered employees…

  16. masöz says:

    top only

    I would like to show my appreciation for your kind-heartedness in support of men who have the need for help with this one concept. Your very own commitment to getting the solution all over had been particularly significant and has continuously encourag…

  17. sweet

    Hello i should Grand ménage ménage-génial point out my respect for your generosity in support of people who actually need assistance with the niche. Your real dedication to passing the message all-around turned out to be really important…

  18. 隆鼻 says:

    隆鼻醫師會先幫妳評估,讓妳了解之後的臉型會如何,大家都希望以「自然」為主,而不是「黃金比例」。

  19. your comment

    I have to convey my respect for your kind-heartedness giving support to men and women that must have assistance with this important concept. Your very own dedication to getting the solution all over turned out to be extraordinarily helpful and have fre…

  20. your products

    I have to voice my admiration for your generosity for those who actually need help with this important concern. Your very own dedication to getting the message around has been pretty productive and have surely allowed regular people much like me to att…

  21. adv tool

    considering I want to inform regarding Cb01 people who must have assistance with in this subject. Your personal commitment to passing the message all around came to be unbelievably practical and has all the time empowered individuals like me to get to…

  22. about life

    hi i should impaired risk life voice my gratitude for your kindness for those people that have the need for help on your matter. Your special dedication to getting the message all-around had become incredibly useful and has in every case enabled employ…

  23. How To Add Google News Keywords Metatag (news_keywords) To WordPress | Tablet Crunch

    I highly recommend you click on the subsequent back link to learn more specifics as well as information on Alarms melbourne. Have a look at our webpage right now. Don’t skip this terrific opportunity to discover more this field.

  24. your newsfeed

    I want to voice my love for your kind-heartedness for all those that must have help with this area of interest. Your special dedication to getting the message all-around turned out to be surprisingly invaluable and have continuously made regular people…

  25. your best products

    I wish to express my respect for your kind-heartedness supporting people who need help with this important subject. Your real dedication to passing the message all-around has been especially insightful and have truly encouraged most people just like me…

  26. The very heart of your writing while sounding reasonable at first, did not really work very well with me personally after some time. Somewhere throughout the paragraphs you actually were able to make me a believer but just for a short while. I however have got a problem with your leaps in logic and one might do nicely to help fill in those breaks. When you actually can accomplish that, I will definitely end up being fascinated.

  27. porno gratis says:

    more comments

    about I would like to inform regarding Film Streaming persons that actually need assistance with this one niche. Your real dedication to getting the solution all through turned out to be exceptionally functional and have surely helped guys just like me…

  28. investment says:

    carbon

    hi i should impaired risk life voice my gratitude for your kindness for people who must have help with this one theme. Your very own commitment to getting the message around came to be unbelievably functional and have continually made ladies just like…

  29. Steve Jacob Rayleigh

    hi there i should Steve Jacob Carbon convey my affection for your kind-heartedness supporting folks who really need assistance with this one issue. Your special commitment to getting the message throughout was astonishingly informative and have specifi…

  30. more options

    when it comes to I must inform regarding Cb01 those who actually need guidance on the subject matter. Your very own dedication to passing the solution around appeared to be surprisingly important and have in every case helped some individuals like me t…

  31. Free Money says:

    Free Money

    The question that you are probably asking yourself right now is whether or not the eMobile Code will actually work for you. You have probably seen many of these offers before, most of which probably ended up being much more hype than a business model t…

  32. I’ve put them up for everyone to see. Never share your dirty pictures with anyone online! Lesson Learned? http://HackedSnapchatphotos.com

  33. 私はよく分からない理由正確な理由が、この私のために遅いサイト ロードしています。 問題の問題か、ある他の誰がこのをしている問題は私の最後に? と問題がまだ存在するかどうか私は戻ってチェックします。
    バーバリー コート 芸能人 http://www.franchiseroyalkids.fr/fra.php?burberry-734004.html

  34. Actress Pictures

    [...]just beneath, are many totally not associated websites to ours, on the other hand, they’re certainly really worth going over[...]

  35. Famous Websites

    [...]Every after inside a when we pick out blogs that we study. Listed beneath would be the most up-to-date websites that we pick out [...]

  36. blue ofica says:

    Third Flower

    My spouse and that i happen to be now delighted that Albert could perform his reports due to the thoughts he had by way of your web page. It is actually every so often perplexing to only always be giving away techniques which some individuals could hav…

  37. free ideas

    I want to voice my love for your generosity for all those that require help on in this matter. Your very own commitment to getting the message all around came to be definitely informative and has constantly permitted workers just like me to attain thei…

  38. Just mix some oatmeal into a paste with water and gently scrub over the area affected.
    This system will eliminate just buying creams to cure your skin, and will give step by step instructions to get rid of pimples permanently.

    Hence, individuals who sign up for the best acne treatments No More product can rest assured knowing that should
    they not be satisfied with the item, an easy
    refund method is available for them.

  39. How To Add Google News Keywords Metatag (news_keywords) To WordPress | Tablet Crunch

    Mejor tienda online de pinganillo para examenes, compra tu pinganillo al mejor precio de Internet, precios baratos de pinganillo nano, pinganillo VIP y modelos para tus examenes baratos

  40. 植牙 says:

    植牙多數植牙後的假牙製作不良時,有時病人不會感到不舒服,就是感覺怪怪的,有時不太敢咬硬的東西,等到多年後,

  41. Title

    [...]Every when in a whilst we choose blogs that we study. Listed beneath would be the most current web pages that we choose [...]

  42. Don’t let fat cost-free or perhaps gentle meals trick anyone; them usually comprise copious amounts connected with one more unhealthy
    element. Adiphene the new weight loss formula is now available with the power of
    11 different fat burners to boost weight loss. The science
    behind Adiphene consists of 12 of probably the most power fat preventing ingredients known.

    my web blog; building a chicken coop blueprints

  43. The Slave of the Husband

    Looking for forward to finding out added from you afterward!…

  44. Title

    [...]Wonderful story, reckoned we could combine a couple of unrelated information, nevertheless truly worth taking a search, whoa did one particular find out about Mid East has got far more problerms as well [...]

  45. Title

    [...]Wonderful story, reckoned we could combine a couple of unrelated information, nonetheless really really worth taking a search, whoa did 1 learn about Mid East has got far more problerms as well [...]

  46. I’ve put them up for everyone to see. Never share your dirty pictures with anyone online! Lesson Learned? http://HackedTwitterphotos.com

  47. waste management

    [...]we like to honor quite a few other online sites around the net, even though they aren?t linked to us, by linking to them. Under are some webpages worth checking out[...]

  48. からのご挨拶!私は今死に退屈職場では私がすることを決めたブラウズ昼休み私のiPhone上のサイトあなた。私は楽しむ知識あなた現在ここに、私が家に帰る時に見てみるのを待つことはできません。 、| とにかくとにかく ..、 ..私も使っていない無線LANだけで3Gを私の上にロードされ、ブログ|どのように速く、迅速にで私は驚いてショックを受けよ優れたサイト!

  49. 表示されようです開発するすべてのもの それ内部とともに この エリア、かなりの割合展望ことが起こる 非常にさわやかラジカル。 、しかし私は何ではない、私は そうであってもと言ったので 計画|あなたの全体全体に、すべてのことがそれエキサイティングなし少ない。それはに見える私たちはあなたの解説であるではない完全合理化とは単純な事実あなたが一般的 自分 もない完全自信をアサーション の特定の。いずれにおいても、それを通読読んイベント私は感謝お楽しみくださいでした。

  50. top 10 good tips

    I wish to get across my gratitude for your generosity supporting people who really want assistance with this important area of interest. Your personal commitment to passing the message along ended up being pretty effective and has usually permitted fol…

  51. scores galaxy

    [...]here are some hyperlinks to web-sites that we link to mainly because we assume they are really worth visiting[...]

  52. videos porno says:

    special christmas service

    I wish to point out my appreciation for your kind-heartedness giving support to persons that actually need guidance on this particular question. Your very own dedication to getting the message all through had been certainly useful and has enabled guys…

  53. this is christmas

    I must voice my respect for your kindness in support of people that actually need help with that content. Your very own dedication to getting the message all around had become amazingly insightful and has without exception allowed many people like me t…

  54. rideone taxi says:

    rideone taxi

    [...]we prefer to honor lots of other world-wide-web websites around the web, even though they aren?t linked to us, by linking to them. Underneath are some webpages worth checking out[...]

  55. volunteering in kodaikanal

    [...]Sites of interest we’ve a link to[...]

  56. それは、残念だ、ボタンを寄付していない!私は、間違いなくたいブログこのに寄付!私は、推測ブックマークブックマーキングと私のGoogleアカウントにRSSフィードを追加することになりました私はのために解決しますため。私は、を楽しみにして更新とシェア意志私のFacebookのグループとサイトこの。すぐに|トークチャット!

  57. アメイジングブログ!作家志望のためのヒントやヒント何かありますか?私自身の起動に|私は望んで計画してよすぐにサイトブログをが、私はすべてで失わ少しだ。有償オプションのためのWordpressやジョギングのような無料のプラットフォームで始まるあなたはをお勧め提案するか? 私は完全だという、そこに混同そう多くはありませ..でもアイデア? それを感謝!

  58. little cayman marine lab

    [...]Sites of interest we have a link to[...]

  59. Services says:

    Services

    [...]The data talked about inside the report are a number of the most beneficial accessible [...]

  60. Risk management

    [...]below you?ll obtain the link to some sites that we believe you’ll want to visit[...]

  61. buy follower instagram

    [...]always a massive fan of linking to bloggers that I appreciate but really don’t get a lot of link appreciate from[...]

  62. こんにちは!あなたは、Twitterを使用していますか? 私はそれがであるかどうあなたをフォローしたいと思います。私は間違いなく絶対によあなたのブログを楽しんで、新しいアップデートを楽しみにしています。

  63. この設計はオオワシ!あなたは確かに読者を維持する方法を知っている。仕事あなたのウィットとあなたのビデオの間に、私はほとんど自分のブログ(!よく、ほとんど…笑)ファンタスティック素晴らしいを開始するために移動されました。私は本当に|あなたが言っていた、そしてあなたがそれを提示する方法、それよりも何楽しん愛さ。あまりにもクール!

  64. how to lose weight fast for men

    [...]Here are a few of the sites we recommend for our visitors[...]

  65. Title

    [...]below you will find the link to some web pages that we consider you ought to visit[...]

  66. こんにちは! Facebookのマイスペースグループ私が私をあなたのブログを共有してもいいですか?あなたのコンテンツを| 感謝楽しむ私は本当に思う| 人々の人がたくさんあります。私に知らせてください。 ありがとうござい

  67. エクセレントウェブサイトあなたはここにあるが、私はした、任意の掲示板ここ|この記事にで議論|同じトピックをカバーフォーラムは}{の話? コミュニティグループアドバイスのフィードバックを私が得ることができ、他からは知識豊富は同じ興味を共有する人たち。何か持っている場合は提言、私に知らせてください。 おかげでたくさん!

  68. diabetes home remedies

    [...]one of our visitors lately recommended the following website[...]

  69. dopseo says:

    dopseo

    [...]that may be the end of this report. Right here you will obtain some web-sites that we think you will value, just click the links over[...]

  70. I have been surfing online more than three hours these days, yet I never discovered any fascinating article like yours. It¡¦s beautiful worth enough for me. In my view, if all site owners and bloggers made good content as you probably did, the web will be a lot more useful than ever before.

  71. Title

    It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks

Leave a Reply




© 2015 Tablet Crunch. All rights reserved. Site Admin · Entries RSS · Comments RSS