Open your site current wp theme (child) file functions.php and add there next code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | add_filter('wpseo_sitemap_index', function () { $links = [ 'https://mysite.com/link1', 'https://mysite.com/link2', 'https://mysite.com/link3', 'https://mysite.com/link4', 'https://mysite.com/link5' ]; //also you can generate links by your own business logic $appended_text = ''; foreach ($links as $l) { $appended_text .= "<sitemap><loc>{$l}</loc></sitemap>"; } return $appended_text; }); |
In array $links set your links you want to add into site sitemap. If you are developer you can add your own logic for generating links.
Also read about WooCommerce Products filter module 'SEO URL request'
