The only thing that helped me was clicking on every single page and manually saving the page from within the WordPress Admin area. That took quite a while for 3000 pages and I am still not sure if this might be needed in the future again.
I think the problem might be related to using the wp_insert_post and wp_update_post functions. I have a script that automatically updates titles and post meta data and I think that Yoast SEO plugin may not work well when using these 2 functions.
I was looking at the Plugin code and database structure and I really wasn’t able to find out why 4 or 5 of the same permalinks were created in the sitemap.xml files…
Can somebody from the Yoast team maybe explain where the function sits to grab the permalinks for the sitemap.xml files?
BTW: I tried some other sitemap plugins and they all seemed to work well and didn’t create duplicate entries in the sitemap.xml files. Only Yoast.
-
This reply was modified 7 years, 5 months ago by tlehnert123.