I found following plugin of wordpress for xml sitemap generator very helpful and efficient.

 

Plugin name: Google XML Sitemap Generator

Description: Originally designed by Google, XML Sitemaps help search engines understand the content of your website, including Google, Bing, Baidu, Yandex and more.

Features: 

  • HTML, RSS and Google XML Sitemap formats.
  • List all your WordPress Pages, Posts, Archives, Authors, Categories and Tags.
  • Support for custom post types and taxonomy.
  • Includes paged links for posts for Archives, Authors, Categories and Tags.
  • Set global sitemap default values for priority and update frequencies.
  • Set sitemap value for priority and frequency at the category, tag, post and page level.
  • Automatic daily auto ping when you have updated pages / posts in WordPress.
  • Add latest pages / posts RSS feed to page header.
  • Automatically adds sitemap entries to your robots.txt file.
  • Add custom entries to your robots.txt file.
  • Compatible with WooCommerce, bbPress, BuddyPress and more.

You can view your sitemap by link: http://yourdomain.com/xmlsitemap.xml