External Pages Sitemap – How to include links in higher folder?
-
My WordPress install is in a subfolder (e.g., https://www.domain.com/blog), and I want to include links to non-WordPress pages *above* the subfolder in the external pages sitemap (e.g., the home page https://www.domain.com).
However, the array in the my_external_sitemap function requires the format home_url(‘page-name’) which doesn’t allow this. home_url prefixes the WordPress blog URL before the page name.
If I remove the home_url function, like this:
array(‘location’ => ‘https://www.domain.com’, ‘lastmod’ => ’06/02/2011′, ‘priority’ => ‘1.0’),
Then the link is not generated in the site map at all.
Is there anyway to generate external page links without requiring home_url to be used?
https://www.ads-software.com/plugins/bwp-google-xml-sitemaps/
- The topic ‘External Pages Sitemap – How to include links in higher folder?’ is closed to new replies.