This question has already been asked before, however, I cannot reply to those comments because I am a new user. Therefore, I will post my question here.
I am trying to create a XML sitemap for my wordpress site. Someone on this site suggested that a duplicate of the XML export file be made. This file is located here.
How can I modify this file in my theme so that it is updated automatically? Where will the exported file be located?
This question has already been asked before, however, I cannot reply to those comments because I am a new user. Therefore, I will post my question here.
I am trying to create a XML sitemap for my wordpress site. Someone on this site suggested that a duplicate of the XML export file be made. This file is located here.
How can I modify this file in my theme so that it is updated automatically? Where will the exported file be located?
Share Improve this question edited Apr 13, 2017 at 12:37 CommunityBot 1 asked May 17, 2014 at 14:53 user51781user51781 191 silver badge5 bronze badges 4- 1 Have you considered using a plugin? – TheDeadMedic Commented May 17, 2014 at 14:57
- Fir of all, thank you for your quick reply. I have actually. However, I have 2 custom post types on my website;books, lessons. I am hoping to garner a little more control over how google would index my site. – user51781 Commented May 17, 2014 at 14:59
- Please see the license in the footer (cc by-sa 3.0 with attribution required), edit your question and link to the original question. – kaiser Commented May 17, 2014 at 15:02
- You seem to have skipped some research steps there. How does "export file" (?) has anything to do with sitemap? – Rarst Commented May 17, 2014 at 17:29
3 Answers
Reset to default 1Latest versions of wordpress (since 5.2 IIRC) have the sitemap generation as part of the core functionallity. Plugins or code are not needed unless you need to customize its generation
The easiest way to achieve what you're looking to do with multiple sitemaps is with Yoast's Wordpress SEO plugin, which will generate a different sitemap for each of your custom post types, in addition to your blog posts and pages.
Use a plugin like Google sitemap plugin
, see: google sitemap plugin