WordPress.org

Ready to get started?Download WordPress

Forums

Better WordPress Google XML Sitemaps (with sitemapindex, multi-site and Google News sitemap support)
[resolved] [Plugin: Better WordPress Google XML Sitemaps (with sitemapindex, multi-site and Google News sitemap (2 posts)

  1. Curtiss Grymala
    Member
    Posted 1 year ago #

    I love the fact that you've made this plugin extensible through the custom modules API. However, I'm not sure if that's the best way to go about accomplishing what I'm looking to accomplish.

    I have another plugin that creates a large amount of custom data and outputs it through WordPress. Within that plugin, an XML sitemap is generated for each entry within that custom data. I would like to simply add a line to the sitemapindex file (or even the page.xml file if that might be easier) that points to the custom sitemap that's being generated by that plugin.

    Basically, to give you a little background; we have a custom plugin that pulls in ~400 entries from an external source, then parses that data into a format that can be output in WordPress. The plugin then combines data from within the WordPress database with the data that was pulled in from the external source, and creates a new virtual page for each entry. Those virtual pages are not stored as content entries within the WordPress database, as they can change on a daily basis (one may disappear, a new one may be added; it's all controlled by the data that's retrieved from the external resource).

    Since all of those entries are virtual, the plugin itself generates a sitemap of all of the entries that are generated. I simply want to add a link that leads to that custom sitemap within our sitemapindex file, so I don't have to go through all ~250 of our sites and manually submit the custom sitemap to Google.

    Is it possible to simply add a new entry to the sitemapindex file without having to write an entirely new module within the API? Or will I have to write a custom module that somehow hooks into the methods that are already written to generate that custom sitemap? Thanks.

    http://wordpress.org/extend/plugins/bwp-google-xml-sitemaps/

  2. Khang Minh
    Member
    Plugin Author

    Posted 1 year ago #

    If you have that sitemap available at certain place, e.g. http://domain.com/custom-sitemap.xml, you can easily add this to the sitemapindex using add_module (please check documentation to know how to use it).

    No need for an entirely new module, just use add_module to register the sitemap, because the custom sitemap has already been generated and available, a call to http://domain.com/custom-sitemap.xml will not trigger BWP GXS at all. But keep in mind that you will not benefit from the plugin's GZip and Caching facility.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic