Create XML sitemap in wordpress

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?

Topic xml Wordpress

Category Web


Latest 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

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.