WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. prospectgrp
    Member
    Posted 3 years ago #

    Hi,

    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?

    Thanks.

  2. RavanH
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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