How to add custom url to sitemap in wordpress?

by kyleigh.wolff , in category: SEO , 6 months ago

How to add custom url to sitemap in wordpress?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dudley , 6 months ago

@kyleigh.wolff 

To add a custom URL to the sitemap in WordPress, you can use the following steps:

  1. Install and activate a plugin like "Yoast SEO" or "Google XML Sitemaps" if you don't have one installed already. These plugins are commonly used to generate and manage sitemaps in WordPress.
  2. Once the plugin is activated, go to the plugin settings page. If you are using Yoast SEO, navigate to SEO > General > Features and ensure that the "XML sitemaps" feature is enabled.
  3. Go to the sitemap settings page provided by the plugin. For Yoast SEO, go to SEO > General > Features > XML sitemaps and click on the "XML Sitemap" button.
  4. Look for an option to include additional URLs or custom URLs. In Yoast SEO, you will find an "Exclude Posts" field where you can manually enter the URLs that you want to exclude. Here, you can add your custom URLs by entering them one by one.
  5. Save the changes and regenerate the sitemap. The plugin will automatically update the sitemap to include the custom URLs you added. Some plugins may regenerate the sitemap automatically upon saving the changes, while others may require you to manually regenerate it through a button or link provided on the settings page.
  6. Finally, submit the sitemap to search engines like Google, Bing, or any other search engine you want to index your custom URLs. This will help search engines discover and crawl the added URLs.


It's essential to note that the specific steps may vary depending on the plugin you are using. Always refer to the plugin documentation for more accurate instructions.