Manually Creating the Sitemap
If you prefer not to use a plugin, you can manually create a sitemap.xml file. This involves creating an XML file with the correct structure and adding it to your WordPress theme’s directory.
Note: Save this given file as sitemap.xml and upload it to your WordPress theme’s directory (usually wp-content/themes/your-theme).
Here’s an example of what the sitemap.xml file should look like:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://w3wiki.org/</loc>
<lastmod>2023-04-01</lastmod>
<changefreq>weekly</changefreq>
<priority>1.0</priority>
</url>
<url>
<loc>https://w3wiki.org/about/</loc>
<lastmod>2023-03-15</lastmod>
<changefreq>monthly</changefreq>
<priority>0.8</priority>
</url>
<!-- Add more <url> elements for each page on your site -->
</urlset>
How to Create a Sitemap for WordPress Site?
A sitemap is XML file that lists all posts, pages URLs and other content on a website. This helps search engine like Google, Bing to discover and crawl all the pages on a site more efficiently. Creating the sitemap for website is an important step for crawling it for search engines and improving site visibility in search results.
Contact Us