If you have WordPress new website and you are unable to index your google news sitemap.xml then in this post you will find a complete solution.
So, here I am going to share with you how to Create Google News Sitemap in WordPress without any Plugins. Let’s Go!
Create Google News Sitemap in WordPress with Plugin
To create a Google News Sitemap in WordPress, you can use a plugin such as Google News Sitemap Generator. Once the plugin is installed and activated, it will automatically generate a sitemap that adheres to the Google News guidelines and submit it to Google News for inclusion.
The plugin also allows you to customize the sitemap settings and submit it to other news directories.
Now let’s talk about how you can create and submit your Create Google News Sitemap in WordPress without any Plugins.
Create Google News Sitemap in WordPress without any Plugins
If you don’t want to use a plugin, you can create a Google News Sitemap manually by following these steps:
Step 1: Create a new XML file and name it “news-sitemap.xml”
Step 2: Add the following code to the top of the file:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:news="http://www.google.com/schemas/sitemap-news/0.9">
Step 3: For each post, you want to include in the sitemap, add the following code:
<url>
<loc>POST_URL</loc>
<news:news>
<news:publication>
<news:name>PUBLICATION_NAME</news:name>
<news:language>LANGUAGE_CODE</news:language>
</news:publication>
<news:genres>PressRelease,Blog</news:genres>
<news:publication_date>PUBLICATION_DATE</news:publication_date>
<news:title>POST_TITLE</news:title>
<news:keywords>KEYWORDS</news:keywords>
</news:news>
</url>
Step 4: Replace the placeholder text with the appropriate information for each post.
Step 5: Add the following code to the bottom of the file:
</urlset>
Step 7: Upload the sitemap to the root directory of your website.
Step 8: Submit the sitemap to Google News using the Google News publisher center.
Remember, It’s important to note that before you submit, you should make sure that your site is eligible for submission by checking the Google News publisher center guidelines.
I hope this article will help you in creating your Google News Sitemap for your website. If yes, then please share it with your friends.
Also Read: