Ability to set news sitemap URL
-
Hey there –
Trying to figure out the best way to set a custom news sitemap URL.
This used to be possible via the “xmlsf_sitemaps” option…
Array ( [sitemap-news] => my-custom-url.xml )
Now, however, that value isn’t used and instead, the rewrite rule is hardcoded…
if( isset($sitemaps['sitemap-news']) ) { add_rewrite_rule('sitemap-news\.xml$', $wp_rewrite->index . '?feed=sitemap-news', 'top'); }
Curious what the recommended approach would be to customize this without hacking that line in the plugin?
Thanks,
TL
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Ability to set news sitemap URL’ is closed to new replies.