neo2k23
Forum Replies Created
-
@maybellyne these are completely two different issues. They are somehow overlapping but have significant different problems.
The issue here is that when you swap themes with same cpt types with same slug names the yoast picks up settings for the cpt type with rewrite whereas the last activated cpt that has no rewrite settings.
The plugin should follow the rewrite settings for the taxonomy regardsless what is already in your tables.
Please handle them seperately. Thank you and kind regards.Here are the steps to create the issue
1) Start with a clean wp install
2) Add this code to the functions.php of the 20-20 theme. I uploaded it into pastebin as the code block here has issues. Sorry about that.
https://pastebin.com/7PYeuuEs
3) Activate the theme and then the yoast seo plugin.
4) in the Yoast breadcrumb settings set the Portfolio Single breadcrumb setting to the portfolio category and set the Archive breadcrumb setting to portfolio. See image https://share.getcloudapp.com/5zujqpdq
5) Create a portfolio item with one category and the yoast [wpseo_breadcrumb] shortcode in the content, publish the post.
6) Goto the permalinks settings and set the permalink for the Portfolio single page base to f.e. Albums. save the permalinks settings
7) Now goto the single portfolio post and view it in the front of your website. Notice the portfolio in the breadcrumbs points to albums. see image
https://share.getcloudapp.com/2NubDKP2
8) Go back to the permalinks and change the Albums into albums-new or what ever you like. But not the same as albums.
9) Go back to view the Single portfolio post. You will see that the link in the portfolio archive in the breadcrumbs path has not updated and is still pointing to the wrong albums url and not albums-new.
https://share.getcloudapp.com/jkuAk10p
10) view the category page for the category you created. You will notice that also that url for the portfolio archive page is pointing to the wrong url. It never gets updated anymore after the first saving of the permalinks. See image
https://share.getcloudapp.com/8LuqKxNm
Please tell me how to fix this? Thank you
Note: The above code works. I tested it 3 times now before submitting it to you. The code i added to the functions.php of the 20-20 theme is also available on paste bin for you by this link
https://pastebin.com/7PYeuuEs
The full functions.php from the 20-20 theme with the code can be found here https://pastebin.com/3S0Pq0cj
Please let me know how to resolve this
If i use the all in one seo plugin there is not a single issue. The portfolio archive url in the breadcrumbs path follows every permalink update. I can change it to anything and it is always ok.
Thank you for your time and understanding.I found the “bug”…. If you enable rewrite for the portfolio taxonomies and in the yoast breadcrumbs settings you have set the category to the breadcrumbs path for the single portfolio items in the setting below.
Breadcrumbs for post types
Choose which Taxonomy you wish to show in the breadcrumbs for Post types.
Then once you switch back to rewrite is false the category keeps on showing in the breadcrumbs path.
I was using a theme before that had portfolio items which had rewrite enabled for the portfolio taxonomy. Once i switch to the theme that has the taxonomy rewrite disabled (false). That setting is still aplied, but gone in the yoast settings. Checkout the images.
https://share.getcloudapp.com/Qwu8zj2n
https://share.getcloudapp.com/llu7bg6d
This is a believe a bug in the yoast seo plugin. It should check the rewrite and follow that. Note this only happens when cpt’s have the same slugnames and are switched.
Note: I am not using them together. I just swapped themes which by accident had the same cpt type. One with rewrite and one without.
And that is also when the “Portfolio Items” gets into the breadcrumbs path of the single portfolio item. I haven’t figured that one out yet. But it has todo with the swap from rewrite => slug name to rewrite => false and settings that have been set in the yoast breadcrumbs in between the swap and which are gone after the swap.I still believe that when rewrite had been set to FALSE the “Portfolio Items” pointing to the portfolio archive page should not show up in the breadcrumbs path even when has_archive has been set to TRUE as there is no archive page for the portfolio type.
I am sorry i have one last question left. How to get rid of the “Portfolio Items” linking to the portfolio post type in single portfolio post pages? There is no setting like for the taxonomy to set that to “none”.
You are right. The issue is caused by something else. I have to figure out which plugin is doing this. I restarted again on a complete fresh install and now it is ok.
Hi
Thank you for the feedback. I just retried (and i was using a clean install before) I will retry and narrow down when the issue occurs and get back to you.- This reply was modified 1 year, 10 months ago by neo2k23.
@maudud Thank you for the update. It is fixed as you are now only addressing bdt– elements. My issues are fixed.
The css change is perfect
[class*=”bdt-“] *,
[class*=”bdt-“] *::before,
[class*=”bdt-“] *::after{box-sizing:border-box}
Resolving all my issues.
have a great week & thanks againNeo.
@maudud Thank you for your reply. This is great news to hear. I am glad you could fix this issue, and that you took my request seriously. Great support! Have a good weekend.
Hi,
Thank you for the answer. I already know i could disable the output by filters as that i found in your documentation. Thank you for pointing it out.
But my question is really about :
Why are they in the schema when i turn them OFF in the settings?
Why does one have to manually add php code in the theme functions.php to really get rid of all breadcrumbs code in the page content?
Please advice : What is the the use of the breadcrumbs setting if it does not remove all breadcrumbs code?
Thank you for your time and patience.- This reply was modified 1 year, 12 months ago by neo2k23.