How to add custom urls to the sitemap in WordPress?

Member

by drew , in category: SEO , a year ago

How to add custom urls to the sitemap in WordPress?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

Member

by dudley , a year ago

@drew 

To add custom URLs to the sitemap in WordPress, you can use the Yoast SEO plugin.

  1. Install and activate the Yoast SEO plugin.
  2. Navigate to SEO > General in the WordPress dashboard.
  3. Click on the Features tab.
  4. Under the Advanced settings pages, enable the option for "Custom Post Types."
  5. Navigate to the Custom Post Types tab and click on the "Add custom Post Type" button.
  6. Fill in the details for the custom post type, such as its name and how it should be displayed in the sitemap.
  7. Click on the "Save Post Type" button.
  8. Navigate to the Yoast SEO » XML Sitemaps page.
  9. Click on the "Post Types" tab.
  10. Find the newly created custom post type in the list and ensure its "Excluded" status is set to "No."
  11. Click on the "Save changes" button.
  12. Yoast SEO will now include the custom post type URL in your sitemap.


You can repeat this process for any additional custom post types you want to add to the sitemap.