Category Slug Not Showing on Sitemap Xml Using Yoast Plugin
I Have This Problem in My Sitemap. Xml. I Was Wondering Why in the List, the Category Slug Is Not Present While in the Dashboard Permalink Section, the Url Is...
I have this problem in my sitemap.xml. I was wondering why in the list, the category slug is not present while in the dashboard permalink section, the URL is displaying its category link.
Here are some of the screenshots to further explain what I mean:
So in the image below you can see the links of the products and the links don't have its category being set in the dashboard:
Here is the screenshot showing what the links look like in the dashboard and what I expect the sitemap links to display:
Note: This sitemap is generated via Yoast SEO plugin version 4.8.
1 Answer
1) Try to disable Cache plugins, or any plugins that might be related
2) Update related plugins (if they need) and also, you'd better update WordPress too (as seen in your screenshot, it needs update)
3) Regenerate Sitemap (update that page)
4) Check if fixed.
5) if so, then re-enable the above disabled plugins and then regenerate sitemap and see if it's broken again, then some plugin conflicts with it.