Skip to content
Status301 Premium

Premium WordPress Plugins and Support

Cart total: €0.00
Menu
  • WordPress plugins
  • Your Account
  • Support
    • Knowledge Base
    • Forums
    • Email support
    • Renew a license
  • Contact

XML Sitemap & Google News

xmlsf_skip_user

RavanH 29 November 20231 December 2023

Filters the response when checking the author for exclusion flags in XML Sitemap context. Passes the user’s exclusion flag and $user; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-author.php Parameters (2) Return The filter should return…

Continue reading →

Filter Hooks

xmlsf_news_excluded

RavanH 21 April 202321 April 2023

Filters the response when checking the post for exclusion flags in Google News sitemap context. Passes the post exclusion flag and $post_id; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-news.php Parameters (2) Return The filter should…

Continue reading →

Filter Hooks

xmlsf_news_keywords

RavanH 7 April 20239 October 2025

Filters the news keywords array in Google News Advanced. Passes the keywords array and $post_id; must return an array. Used in xml-sitemap-feed-advanced-news/inc/class-main.php Parameters (2) Return The filter should return an array with keywords for the current…

Continue reading →

Filter Hooks

xmlsf_excluded

RavanH 22 February 202317 September 2023

Filters the response when checking the post for exclusion flags in XML Sitemap context. Passes the post exclusion flag and $post_id; must return true or false. Used in xml-sitemap-feed/views/feed-sitemap-posttype.php Parameters (2) Return The filter should return…

Continue reading →

Filter Hooks

Cloudflare and XML Sitemap & Google News

RavanH 17 January 202321 November 2025

Cloudflare may cause the XML Sitemap or Google News sitemap to be cached for a certain time, presenting stale sitemaps to both visitors and search engines crawlers. This can cause unexpected delays in indexing or…

Continue reading →

XML Sitemap & Google News
Troubleshooting

Search Console says: “The sitemap can be read, but it has errors”

RavanH 17 January 202321 November 2025

First, check your news sitemap in an online XML validator like https://www.xml-sitemaps.com/validate-xml-sitemap.html It may already provide you with some clues about what could be going wrong. If there are errors reported that you do not…

Continue reading →

XML Sitemap & Google News
Troubleshooting

Changing the XML sitemap appearance

RavanH 17 January 202321 November 2025

If you wish to change the look of your XML Sitemaps, you have several options: Let’s look closer at each of these options so you can decide which approach is best for you. XML Sitemaps…

Continue reading →

XML Sitemap & Google News
Developers

xmlsf_news_language

RavanH 2 June 20222 June 2022

Filters the post language code used in the news sitemap. Passes additional variables $post_id and $post_type; Used in xml-sitemap-feed/views/feed-sitemap-news.php Parameters (3) $locale(string) Site language taken from get_bloginfo(‘language’) or from Polylang or WPML post data. Usually…

Continue reading →

Filter Hooks

Action and Filter hooks

RavanH 30 May 202221 November 2025

A quick overview of all available action and filter hooks in XML Sitemap & Google News. Action hooks Hook name Context Description xmlsf_generator XML Sitemap, Google News Fired before each sitemap’s <urlset> tag. xmlsf_ping Removed…

Continue reading →

XML Sitemap & Google News
Developers

Search Console says: “Publication name does not match…”

RavanH 1 July 202121 November 2025

After adding your Google News Sitemap to your the list of sitemaps in your Search Console account, you may encounter this error message: The publication name specified in your Sitemap does not match the publication…

Continue reading →

XML Sitemap & Google News
Troubleshooting

Posts navigation

Older posts
Newer posts
Documentation
  • CoolClock
  • XML Sitemap & Google News
Documentation: XML Sitemap & Google News
  • Install
  • Change registered license domain
  • FAQ’s and Troubleshooting
    • Search Console says: “Publication name does not match…”
    • Search Console says: “The sitemap can be read, but it has errors”
  • Adding sitemaps to robots.txt
  • Cloudflare and XML Sitemap & Google News
  • Nginx rules and XML Sitemap & Google News
  • Changing the XML sitemap appearance
  • [Advanced] Keywords for your Google News sitemap
  • Developers
    • Action and Filter hooks
    • Conditional tags
Support Forums
  • CoolClock Pro
  • XML Sitemap & Google News
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.

To find out more, including how to control cookies, see here: Privacy Policy
Premium WordPress Plugins and Support - Status301 Premium © 2026
Loading...

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.