Closed BackuPs closed 1 year ago
We use GitHub exclusively for well-documented bug reports. The reported issue does not contain enough information to be a viable bug report, so we're now closing the report. We have the following support channels:
If you feel like your bug or enhancement is valid and should be reviewed by us, please use the provided templates, read our contribution guidelines, and submit a new issue. Thank you for your understanding.
As for your specific questions:
has_archive
parameter set to true, it's expected that the Yoast breadcrumbs include a link to the archive page. Yoast SEO > Settings > Advanced > Breadcrumbs > Breadcrumbs for Post Types
(no matter whether rewrites are enabled for the taxonomy).Also, if the plugin is showing incorrect breadcrumbs after you've changed the registration code of your post type/taxonomy, you may need to reset the indexables table through the Yoast Test Helper plugin.
Lastly, if you have special needs, and the default settings don't allow you to accomplish what you're trying to do, you can use one of the filters available in the plugin to customize your breadcrumbs; for example, the _wpseo_breadcrumblinks or the _wpseo_breadcrumb_singlelink filter. You can find some examples of use on this link.
How much information do you need to recreate the bug? I gave you all information. Its a bug When the taxonomy has no rewrite (so rewrite is set to false) then in the breadcrumbs path the category still shows. THAT IS A BUG !! What else do you need so you understand the problem?
"The Yoast breadcrumbs will include the category if you've configured the plugin to do so under Yoast SEO > Settings > Advanced > Breadcrumbs > Breadcrumbs for Post Types (no matter whether rewrites are enabled for the taxonomy)."
I did not and there is nothing todo so because the taxonomy has no rewrite ! Did you even try todo to recreate the issue? Or is this just a default answer to get rid of the problem/issue?
There are other posttypes where i do want to see the category in the breadcrumbs. But not in the one that has no rewrite. The moment i enable rewrite i get a extra option in the yoast breadcrumbs for that custom posttype.
Please open the functions.php of twenty twenty theme Steps to recreate the issue. 1) Add this code
2) activate the 20-20 theme and save the permalinks just once.
3) Now create two categories for the portfolio items one named animals and one named videos.
4) Now add a new portfolio item just give it any name
set the animals to that newly created portfolio post and in the post content add the yoast breadcrumb shortcode. Publish the post.
5) If you view the post in the front you will see a empty page and this content showing the breadcrumbs.
I have two questions
Although the categories have no rewrite why does the animal category show up in the breadcrumbs path as a link? Why is there a breadcrumb path called 'Portfolio items' linking to the last portfolio category called video's?
The categories do not have a rewrite => false & public => false
The breadcrumb path called 'Portfolio items' linking to the last portfolio category called video's is there because the register_post_type has a argument called has_archive=> true.
But because of the portfolio category not having a rewrite that should not be in the breadcrumbs path at the first place regardless the has_archive=> true setting because the rewrite (rewrite => false) was set to false in the register_taxonomy arguments.
It does not make any sense that it shows up in the breadcrumb path. I do not understand the why.
Where am i making the mistake or where is yoast breadcrumbs making the mistake and adding the categories to the path. In the Yoast breadcrumb settings the custom category is not shown which is correct.
Please advice.