Support » Plugin: XML Sitemap & Google News » Limit post by tag

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author RavanH


    Hi, try the development version from (under Other Versions) and you might find a useful new feature…

    Hi Ravan tks for answer, but i couldnt find any option that let me filter post sent to sitemap-news xml from an especific tag.

    I uninstall the previous plugin, then upload and install the development version (4.3.105), clean cache, and test, but couldn find any new option.

    Maybe might work if we could add an Additional XML Sitemaps to the sitemap-news.xml, just as is possible to sitemap.xml. With that choice we could use a tag auto feed post to filter posts by tag. Tks

    Plugin Author RavanH


    There is currently only limitation by category, not tag. Is there no way you can make that work for you?

    Maybe might work if we could add an Additional XML Sitemaps to the sitemap-news.xml

    A news sitemap can not be a sitemap index so there is no way to add extra news sitemaps this way. However, you can do it via the robots.txt field.

    Add a line like:


    Then you can disable the News Sitemap option on Settings > Reading.

    If you have already submitted the URL to Google News and you don’t want to change that, then you could use a plugin like Redirect to create a redirection to the tag feed.

    Tks Ravan but that solution show regular rss feeds, not that cute and correct for google news, xml output that your plugin generate for sitemap-news.xml

    I couldn’t find a solution for tags, neither with the exlude filter on functions.php, but at least works for categories. Tks anyway.

    Plugin Author RavanH


    I’ve found a very simple way of filtering by tag that works for the regular XML Sitemap posts feed so I suppose it should work for News Sitemap feed too. Try this:

    Open your news sitemap URL in a browser but now append the URL with a query parameter like ?tag=TagName (replace TagName with an existing tag on your site that has posts less than 48 hours old) and tell me if the resulting list is indeed limited to that tag.

    If so, then submit the URL including the query parameter to Google News 🙂

    AWESOME Ravan, it works perfect, thats what i was looking for. I owe u a jar of coffe, ill be grateful soon. Tks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Limit post by tag’ is closed to new replies.