archetyped / cornerstone

Enhanced Content Management for Wordpress
http://archetyped.com/tools/cornerstone/
GNU General Public License v2.0
6 stars 1 forks source link

Permalinks / Yoast / XML sitemaps #47

Open shaneparsons opened 4 years ago

shaneparsons commented 4 years ago

After changing the permalink structure to the ideal "Structured" option, the permalinks in the post sitemap that Yoast generates (post-sitemap.xml) are broken. e.g. https://example.com/work/%postname%/. Note how %postpath% gets parsed, but%postname% doesn't.

I haven't explored the source in depth yet, so I'm not sure how hard it'd be to fix this... But it'd be great if it could play nicely with the auto sitemap generation that Yoast provides, especially since it's such a popular plugin. The only workaround I could think of in the meantime is to create / update the sitemaps manually, but that isn't ideal for bigger sites or for non tech saavy clients... Is there any other workaround that I've missed?

shaneparsons commented 4 years ago

After further investigation I'm beginning to think this issue might be isolated to Yoast, as other sitemap generators (e.g. Google Sitemap Generator) don't seem to have this problem. Whether the problem is 100% on the Yoast side or not may be worth investigating, but that doesn't necessarily concern me at this point in time.

I'll leave this open for you guys to investigate, but disabling the Yoast sitemaps and using the Google Sitemap Generator plugin instead is an easy enough workaround for me.

archetyped commented 4 years ago

Thank you for the report. This is being looked into.