Forums

Google XML Sitemaps
filter/hook? (1 post)

  1. Zoinks! Graphics
    Member
    Posted 7 months ago #

    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?

    http://wordpress.org/extend/plugins/google-sitemap-generator/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 7 months ago by Zoinks! Graphics
  • This topic is not resolved
  • WordPress version: 3.2.1