XML Sitemap & Google News feeds
[resolved] [Plugin: XML Sitemap & Google News Sitemap Feeds] Google News and Custom Post Types (3 posts)

  1. prospectgrp
    Posted 5 years ago #


    I have a custom post type set up and I would like to include content from the custom post type in the Google News sitemap. Is there any way to do this?


  2. RavanH
    Plugin Author

    Posted 5 years ago #

    Currently, the query that is done to list posts in the News Feed, is hardcoded in the feed template file feed-sitemap-news.php

    If you open it for editing, you will find the query parameters in an array starting on line 27... You can edit that to reflect your custom post type. But note that the changes will be overwritten upon the next plugin update.

    If you feel uncomfortable editing PHP files or would like a more permanent solution, please contact me on http://4visions.nl/en/contact/ and we can discuss a customised version :)

  3. prospectgrp
    Posted 5 years ago #

    Thanks for your help. I changed the post type in the code and it worked.

    This should do for now (until we're actually accepted in Google News) but may be interested in a custom version in the future.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic