[Plugin: Google XML Sitemaps] filter/hook?
-
I am interested in a filter/hook function for Google XML Sitemaps. Don’t know if it already exists and if so, how to implement it via my theme’s functions.php file. The reason being, I design WP sites using content from child pages called into parent pages. I don’t want the child pages to show up in the search engines.
Sure, I could insert every single page ID in the Google XML Sitemaps exclude setting, but (A) that’s unwieldy for a large number of pages, and (B) that doesn’t help when I add new subpages. Alternately I could achieve this by editing the $this->_options[“sm_b_exclude”] in sitemap-core.php file, but that won’t survive plugin updates.
Therefore I’d like to create a function that excludes children of certain pages, then have that function affect the output of the sitemap generated by Google XML Sitemaps. Any thoughts?
The topic ‘[Plugin: Google XML Sitemaps] filter/hook?’ is closed to new replies.