External Pages’ Sitemap Multiple URLs
-
add_filter('bwp_gxs_external_pages', 'my_external_sitemap'); function my_external_sitemap() { $external_pages = array( array('location' => home_url('link-to-page.html'), 'lastmod' => '06/02/2011', 'priority' => '1.0'), array('location' => home_url('another-page.html'), 'lastmod' => '05/02/2011', 'priority' => '0.8') // repeat this for any other pages you would like to add ); return $external_pages; }I’m using the external pages’ sitemap feature, so far I managed to implement it exactly as that. Thanks to the tutorial found here: http://betterwp.net/wordpress-plugins/google-xml-sitemaps/#external_sitemap
However this is my problem: I would be needing to add tens of thousands of URLs, which would mean I would have tens of thousands of extra lines on my functions.php – which would be a problem (functions.php’s filesize would be too huge)
Is there a workaround it?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘External Pages’ Sitemap Multiple URLs’ is closed to new replies.