Hi @saltmediadevon,
The categories that appear in the URLs are controlled by your permalink settings, so we expect Yoast SEO to use the same permalink.
Unfortunately, we weren’t able to check the example page because it’s a broken link. Can you send the working URL for us to check?
Hi @priscillamc
Thanks for getting back to me (and on a weekend!)
Yes the link is broken, that was my point, the slug recipe_category is being added yet the actual slug in the example is baking which is in the url after recipe_category part
@saltmediadevon Thanks for your reply. So to clarify, should the recipe_category not appearing in the URL at all?
Also, can you please confirm what your permalinks settings are in WordPress? These are located under Settings>Permalinks.
hi @devnihil
Yes, recipe_category should not be appearing as after that, the actually category is displaying correctly ie https://2020.food-mag.co.uk/recipes/recipe_category/baking/
Permalinks are currently
Standard Posts /%category%/%postname%/%day%/%monthnum%/%year%/
Recipe posts are CPT /%recipe_category%/%postname%/%day%/%year%/
with.has_archive: true / with_front: true
This is only happening for archive pages
Hi @saltmediadevon,
Thank you for your reply.
We are not sure where the %recipe_category% part in the permalink structure is coming from. This is not part of the default WordPress permalink structure tags as seen in the WP documentation: https://wordpress.org/support/article/using-permalinks/#structure-tags.
Can you share a screenshot where that is configured?
Hi @jeroenrotty , sorry i missed your reply.
I use CPT with custom taxonomy recipe_category with all the categories in, I also use with the Custom Post Type permalinks plugin (screen shot below).
Custom Permalinks Screen Shot
It seems that the category link from Yoast breadcrumbs get a 404, BUT what is weird is that the category Baking works and populates the archive page.
this a 404 url from the Yoast breadcrumb link
https://2020.food-mag.co.uk/food-recipes/recipe_category/mains/
This is a working link from Yoast breadcrumb link
https://2020.food-mag.co.uk/food-recipes/?recipe_category=baking
You can see that the URL from the breadcrumb is different, why is that?
Hi,
You identified several issues. We have responded to them below.
A. Permalink Issue
Yoast does not control the permalinks of the page. We can see you added: recipe_category to your permalinsk in this screenshot: https://2020.food-mag.co.uk/wp-content/uploads/2020/07/Screenshot-2020-07-27-at-10.21.02.png.
We are not sure why the permalink on pages like: https://2020.food-mag.co.uk/food-recipes/recipe_category/mains/ is then failing to replace: recipe_category.
In addition, we can see on your Recipe post types here on the sitemap: https://2020.food-mag.co.uk/recipes-sitemap.xml they are all going to 400 error. This is likely the result of %recipe_category% failing to be replaced with the right recipe category.
We can only suggest contacting your CPT plugin author for more information. It seems like with your set-up you cannot use: %recipe_category%. You may need to use something else in your permalinks.
B. BUT what is weird is that the category Baking works and populates the archive page.
This is not expected to be an archive page: https://2020.food-mag.co.uk/food-recipes/?recipe_category=baking. Rather it is a search page.
Instead, rather, the URLs listed on the sitemap here: https://2020.food-mag.co.uk/recipe_category-sitemap.xml are expected to be your CPT taxonomy of Recipe Category.
This is expected to be the CPT archive page for the taxonomy of baking: https://2020.food-mag.co.uk/food-recipes/recipe-cat/baking/. It currently does not load. We are not sure why. We can only say to contact your CPT author for more information.
Hi @pcosta88 thanks for the detailed report, ive been onto CPT but they are not seeing this as an issue (??) ive actually set permalinks back to default and there are no 404’s.
Hi,
We would recommend that you contact your CPT author for more information as we’re not sure if this is indeed being caused by the Yoast SEO plugin.
Hi @mikes41720 i actually looked into Permalinks Pro plugin and this has completely solved all issues. thanks
@saltmediadevon Thanks for confirming. We are going ahead and marking this issue as resolved.